-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Next build errors in Next example #8456
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b86c3a4:
|
Tested deploy to vercel using this branch directly - https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkeystonejs%2Fkeystone%2Ftree%2Ffix-keystone-next-vercel%2Fexamples%2Fnextjs-keystone and it works with these changes |
@@ -9,7 +9,7 @@ | |||
"keystone:start": "keystone start", | |||
"next:dev": "next dev -p 4000", | |||
"next:build": "next build", | |||
"build": "keystone build && next build", | |||
"build": "keystone build --no-ui && next build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ui
is not being used by this example
@@ -19,6 +19,7 @@ | |||
"@keystone-6/fields-document": "^7.0.0", | |||
"@preconstruct/next": "^4.0.0", | |||
"@prisma/client": "^4.12.0", | |||
"graphql": "^16.6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing dependency
@@ -3,7 +3,7 @@ | |||
"target": "esnext", | |||
"lib": ["dom", "dom.iterable", "esnext"], | |||
"allowJs": false, | |||
"skipLibCheck": false, | |||
"skipLibCheck": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the monorepo
This pull request fixes the
nextjs-keystone
example deployment for Vercel, as it had a number of build issues.