nexts logging on docker not working
Answered
West African Lion posted this in #help-forum
West African LionOP
hello, anybody has ever succesfully managed to make dockerized nextjs application work with server side logs? https://github.com/vercel/next.js/issues/60723
7 Replies
@West African Lion hello, anybody has ever succesfully managed to make dockerized nextjs application work with server side logs? https://github.com/vercel/next.js/issues/60723
try add this to
/api/chat/route.tsexport const dynamic = 'force-dynamic'because the GET endpoint is static generated by default
Answer
West African LionOP
wow it works
so that means i have to implement that on every route? is there any side effects if i do so ?
@West African Lion so that means i have to implement that on every route? is there any side effects if i do so ?
no, if the route only export a GET endpoint and it will be static
West African LionOP
thank you very much