Next.js Discord

Discord Forum

Standalone Mode Logs (App Dir)

Unanswered
Harrier posted this in #help-forum
Open in Discord
HarrierOP
I'm trying to dockerize a next 13 build in the app directory using the standalone version, everything works fine locally but once hosted the API routes aren't returning the proper information.

I looked into why this could be happening but I cant seem to get logs from the standalone build, whether i run it via docker or just run it via node there's no logging output whatsoever.
How do I configure this?

I've attached an example of one of the API calls, within the getAllVersions function I have a few external fetch requests that are all wrapped in try, catch blocks with a few calls that I know to fail and output logs perfectly fine when run using next dev but nothing in standalone.

3 Replies

HarrierOP
Example of output, this is the same whether running server.js directly or running docker
Expected logs (shows on dev)