Next.js Discord

Discord Forum

Expose error message in build

Answered
Manx Shearwater posted this in #help-forum
Open in Discord
Manx ShearwaterOP
Hi, my aplication crashes and the only way i am able to reproduce the error is by building a docker image of my application and run the docker image, the issue is that I cant get the specific error message on build, is there a way to expose the error message when running the docker image? I am running next version 14.1.3
Answered by Lukas
It should be in your logs (server logs, not client logs). If not, you could add an error.js and just json.stringify the error in it (not an ideal solution, plus nextjs removes some info when sending to the client)
View full answer

3 Replies