Skip to content
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

Merged
merged 5 commits into from
Aug 1, 2024
Merged

Fix Astro and Remix examples not building #9247

merged 5 commits into from
Aug 1, 2024

Conversation

dcousens
Copy link
Member

@dcousens dcousens commented Aug 1, 2024

This pull request fixes the examples/framework-astro and examples/framework-remix examples which both had been suffering from vite build issues outside of our normal keystone postinstall checks.


// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
Copy link
Member Author

@dcousens dcousens Aug 1, 2024

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',
Copy link
Member Author

@dcousens dcousens Aug 1, 2024

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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incompatible here too

Copy link

codesandbox-ci bot commented Aug 1, 2024

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:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens dcousens merged commit 048b36d into main Aug 1, 2024
42 of 43 checks passed
@dcousens dcousens deleted the astro-remix branch August 1, 2024 08:35
@dcousens dcousens mentioned this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant