Next.js Discord

Discord Forum

NextJS Environment variables

Unanswered
Selkirk Rex posted this in #help-forum
Open in Discord
Selkirk RexOP
I'm working on a Next.js project with a slightly modified setup from create-next-app, as I'm using Turborepo.

Everything works fine in development, but I'm running into issues when deploying the application in a Docker container. Specifically, the environment variables in process.env are there, but they are just empty - they don't contain any information. Im using default Dockerfile configuration from Turborepo docs, modified to use pnpm.
Im deploying a couple of containers so Im using Docker Compose for it, where I defined environment variables. In other container it works fine.
This is my environment variables from Docker Inspect:

0 Replies