Read Error in production (nextjs server less lambda in cloudwatch)
Unanswered
Cassin's Auklet posted this in #help-forum
Cassin's AukletOP
hello,
im using sst v3 monorepo and has nextjs resource serverless using lambda
im getting error in website in production, i tried in nextconfig to add
and i have try catch with console error and add instrumentation
but still my error are minified like this:
does anyone know how to read the actual error?
im using sst v3 monorepo and has nextjs resource serverless using lambda
im getting error in website in production, i tried in nextconfig to add
productionBrowserSourceMaps: true,and i have try catch with console error and add instrumentation
export function register() {
process.on('uncaughtException', (err) => {
console.error('UNCAUGHT_EXCEPTION', {
message: err.message,
stack: err.stack,
});
});
process.on('unhandledRejection', (reason) => {
console.error('UNHANDLED_REJECTION', reason);
});
}but still my error are minified like this:
2026-03-14T13:30:51.789Z 5bcc7df9-4530-4283-a2c6-6d1844b9f63d ERROR at aY (/var/task/packages/website/.next/server/chunks/4883.js:404:45155)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async a8 (/var/task/packages/website/.next/server/chunks/4883.js:404:55429)
at async a7 (/var/task/packages/website/.next/server/chunks/4883.js:404:60115)
at async tf.do (/var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:19:6358)
at async tf.handle (/var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:19:11250)
at async doRender (/var/task/node_modules/next/dist/server/base-server.js:1518:42)
at async NextNodeServer.renderToResponseWithComponentsImpl (/var/task/node_modules/next/dist/server/base-server.js:1920:28)
at async NextNodeServer.renderPageComponent (/var/task/node_modules/next/dist/server/base-server.js:2408:24)
at async NextNodeServer.renderToResponseImpl (/var/task/node_modules/next/dist/server/base-server.js:2445:32)does anyone know how to read the actual error?