Relative Content

Tag Archive for postgresqldockernext.js

NextJS & docker & custom-hosting (not vercel): Where is postgressql-connection stored?

I’m dockerizing a nextjs application to host it on a ‘custom’ cloud provider (not vercel). During development I’m still using the postgresSQL of vercel. The postgresSQL of the new cloud provider is not accessible directly from the internet but only within the intranet. Therefore I need to change the connectionstring during deployment. I found out that the .env file is twice available and I overwrite them both after the nextjs build. But at runtime my app is still using the old connectionstring. But I cannot find its location.