DEV Community

Discussion on: You are reading environment variables the wrong way in Next.js

Collapse
 
yatki profile image
Mehmet Yatkı • Edited

Not really right, because your application won't be run inside the docker until you run the image. You'd provide the environment variables with docker run command or with a docker-compose file. So there wouldn't be any problems during the build 🖖

Collapse
 
fenntasy profile image
Vincent Billey

Yes, sorry, it will only happen if you run the build command when building your docker container.