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 dev
works.But when I build with
npm run build
, I cannot run the app withnode
without doing anothernpm insrtall
for the Prisma Client withnpx prisma generate
.I'm using the following
gitlab-ci.yaml
script:Is there a way to bundle the Prisma Client with
npm build
so I don't have to donpm install
on the production server which runsnode
?Beta Was this translation helpful? Give feedback.
All reactions