How do you deploy the new generated client?
I have tried using the new generator, as advised to do so by the CLI.
I then mapped the alias to my
tsconfig.json
:
I am able to import the client and use it in my application:
However, when I try to deploy my application to Fly.io. I endlessly recieve the following when trying to run pnpm run build
:
It seems that, no matter what I do, the generated client alias is not able to be used by my application. Is there some secret sauce that I am missing here?2 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!Nevermind, I reverted back to the prisma-client-js without the output generated. I'll probably wait until v7 comes out and others blaze the trail.
Worth noting, it may be beneficial to update some of the examples. Try deploying to environments like Fly or Render and then document the kinks for the community.
https://github.com/prisma/prisma-examples/blob/latest/deployment-platforms/render/prisma/schema.prisma
GitHub
prisma-examples/deployment-platforms/render/prisma/schema.prisma at...
🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.