Next.js Discord

Discord Forum

NextJS 14 standalone folder is missing server.js

Unanswered
Australian Terrier posted this in #help-forum
Open in Discord
Avatar
Australian TerrierOP
Hi, I've just updated from Next 13 -> 14 and my .next/standalone folder is now missing server.js file.

Does anyone know what might be causing this?

2 Replies

Avatar
Australian TerrierOP
I think I figured it out.
I'm using monorepo setup and starting Next14 standalone folder is resembling it's structure.

So .next/standalone/server.js moved to .next/standalone/packages/<your_app>/server.js
I wonder what's the underlying reason for the change, and if there's a way to only include the relevant files in standalone folder? 🤔