How to deploy Next.js app with Prisma and Postgres #2564
Replies: 2 comments 3 replies
-
Turned out I couldn't use Nixpacks. Needed to use Dockerfile. |
Beta Was this translation helpful? Give feedback.
-
The error you're encountering seems to be related to the Prisma migration process during the build step on your Coolify server. It appears that the Prisma schema is failing to apply the required migrations to your PostgreSQL database. Here are a few steps you can try to troubleshoot and resolve the issue:
It's possible that the issue is specific to the Coolify deployment environment or the way Prisma is configured in your Next.js app. By investigating the migration process and database connection, you may be able to identify and resolve the underlying cause of the error. |
Beta Was this translation helpful? Give feedback.
-
I have this demo Next.js app with App Router that uses Prisma to connect to a Postgres database. I have installed and deployed a Postgres DB in my server via coolify and it can be accessed from the internet.
But I cannot get the build to succeed in coolify. It just showed me incomplete error:
As you can see, it only says "#13 2.223 Error: Schema engine error: ".
Meanwhile, it can be deployed successfully in Vercel.
Anybody can help?
Beta Was this translation helpful? Give feedback.
All reactions