error in production, using Vercel
My app is running fine locally, I also have a local migrations folder and schema but as I have deployed my project on Vercel it's erroring out that,
I am using the Postgres docker image for my local database and I have deployed that image on Vercel and then I have connected my deployed next.js project to the Vercel db instance.
I do think that I will have to add some scripts to my
package.json
file for the migrations in the prod but I am not able to get that
https://github.com/Boby900/docker-demoGitHub
GitHub - Boby900/docker-demo: a dashboard built with next.js, x-api...
a dashboard built with next.js, x-api, shadcn and docker-postgres. - Boby900/docker-demo
6 Replies
Vercel is a serverless platform, it doesn't support Docker/Containers. You need to deploy the container somewhere else and connect to it over HTTP from Vercel
I would try hosting this on Railway. They conveniently allow you to create Postgres instances next to your app.
Thanks for your time and helping me
Okay, I will try to host it on Railway if I could get it all working there.
Thanks, @Budi
Thanks @ytsruh
If you sign up with this ref link I get some credits 🙂 https://railway.app?referralCode=hxCjRd
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Thanks. I only saw your message today. I already had a Railway account when I was trying to deploy some of my other projects.
No sweat. Hope you were able to figure it out.