15cdb4f408
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.
7 lines
128 B
JavaScript
7 lines
128 B
JavaScript
export function getServerSideProps() {
|
|
return { props: {} }
|
|
}
|
|
|
|
export default function BadSsr() {
|
|
throw new Error('oops')
|
|
}
|