Skip to content

Commit

Permalink
Example with-relay-modern-server-express: move relay __generated__ ou…
Browse files Browse the repository at this point in the history
…t of pages dir

Fixes Error: Build optimization failed: found page without a React Component as default export in
pages/__generated__/pages_indexQuery.graphql
  • Loading branch information
messa committed Mar 11, 2020
1 parent 29ad441 commit 75369af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/with-relay-modern-server-express/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"next/babel"
],
"plugins": [
"relay"
["relay", { artifactDirectory: "__generated__" }]
]
}
2 changes: 1 addition & 1 deletion examples/with-relay-modern-server-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "next build",
"prestart": "npm run build",
"start": "NODE_ENV=production node server",
"relay": "relay-compiler --src ./ --exclude '**/.next/**' '**/node_modules/**' '**/test/**' '**/__generated__/**' '**/server/**' --schema ./server/schema.graphql --verbose"
"relay": "relay-compiler --src ./ --exclude '**/.next/**' '**/node_modules/**' '**/test/**' '**/__generated__/**' '**/server/**' --schema ./server/schema.graphql --artifactDirectory __generated__ --verbose"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 75369af

Please sign in to comment.