Next.js Discord

Discord Forum

Turborepo with Dockerfile 'server.js' not found when running image

Answered
Southern rough shrimp posted this in #help-forum
Open in Discord
Southern rough shrimpOP
I'm trying to move to turborepo, I've rewritten my Dockerfile, it builds but the entry point is completely different to what the Turborepo docs say.

CMD ["node", "/app/apps/web/.next/standalone/apps/web/server.js"]
Answered by Southern rough shrimp
It was fixed by adding this line to my next.config.ts
View full answer

2 Replies

Southern rough shrimpOP
Southern rough shrimpOP
It was fixed by adding this line to my next.config.ts
Answer