DEV Community

Discussion on: Dockerising a Next.js project

Collapse
 
lenybee profile image
Leny BERNARD

Thank you, it works for dev env but not for prod actually, did you forgot some parts ?
I added a prod config with the production target but the build step failed as SSG (or ISG) needs another service to be hit to fetch data. I've tried adding a "depends_on" docker-compose conf but it doesn't helped and I still have a FetchError getaddrinfo ENOTFOUND...