-
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
Fix Astro and Remix examples not building #9247
Conversation
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
output: 'server', | ||
adapter: node({ | ||
mode: 'standalone', | ||
}), |
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.
An adapter
is required for output: 'server'
, I suspect this was missing initially when added in #8471, or maybe the defaults changed?
@@ -18,7 +19,7 @@ export default config({ | |||
|
|||
// WARNING: this is only needed for our monorepo examples, dont do this | |||
// we use using myprisma, not .myprisma, because vite | |||
prismaClientPath: 'node_modules/myprisma/client', |
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.
It appears that the nested nature of /client
is not compatible modern node module resolution, we should probably apply this change to our fixPrismaPath
utility
@@ -9,7 +9,7 @@ datasource sqlite { | |||
|
|||
generator client { | |||
provider = "prisma-client-js" | |||
output = "node_modules/.myprisma/client" | |||
output = "node_modules/myprisma" |
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.
Incompatible here too
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 ac3c48d:
|
This pull request fixes the
examples/framework-astro
andexamples/framework-remix
examples which both had been suffering fromvite
build issues outside of our normalkeystone postinstall
checks.