Prisma NextJs Docker and Multi Datasource
Hello,
thanks for your time.
I use Prisma, Docker and NextJs at work. A combination that is almost unbeatable.
Now I have the following problem, I have several database connections.
So I have the following structure:
./prisma
./prisma/tabelhub/schema.prisma
-->
./prisma/camunda/schema.prisma
-->
depending on the connection, I simply integrate the client.
This also works with "npm run dev" and the build also starts. However, as soon as I go over to Docker, the second client is not "copied" and built?
Generate the Prisma clients for both schemas
does anyone have an idea?
Translated with DeepL.com (free version)
1 Reply
Can be closed. The error was a typo in the Dockerfile, which meant that the client was not copied correctly.