Skip to content

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.

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?


// 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

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

@dcousens dcousens self-assigned this Aug 1, 2024
@codesandbox-ci
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
@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.

2 participants