Replies: 1 comment
-
|
No, and you shouldn't bundle dependencies if you're using the node adapter. You can read more on this at https://github.com/sveltejs/kit/tree/master/packages/adapter-node#deploying and see this discussion on why. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using SvelteKit and the Typescript package Prisma Client together. Prisma Client is a dependency that has to be generated before the app can run. Generating the Prisma Client and then running the development version with
npm run devworks.But when I build with
npm run build, I cannot run the app withnodewithout doing anothernpm insrtallfor the Prisma Client withnpx prisma generate.I'm using the following
gitlab-ci.yamlscript:Is there a way to bundle the Prisma Client with
npm buildso I don't have to donpm installon the production server which runsnode?Beta Was this translation helpful? Give feedback.
All reactions