mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Stack trace disappears when error is converted to string. I changed the types in `log.ts` to match `console.log`/`console.error`/`console.warn`. fixes #31591
13 lines
205 B
JavaScript
13 lines
205 B
JavaScript
export default function Page() {
|
|
return <p>getServerSideProps page</p>
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
setTimeout(() => {
|
|
throw new Error()
|
|
}, 10)
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|