mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
In serverless mode, it's best practice to propagate an unhandled error so that the function is disposed instead of recycled. This helps fix the "bad state" problem.
4 lines
71 B
JavaScript
4 lines
71 B
JavaScript
export default function handler(req, res) {
|
|
throw new Error('lol')
|
|
}
|