mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Small QOL improvements to `RenderResult` and `RouteModule` setup. This also adds a test to verify that headers aren't sent on responses that have already been sent. --------- Co-authored-by: JJ Kasper <[email protected]>
10 lines
203 B
React
10 lines
203 B
React
export default function Page() {
|
|
return <p>hello world</p>
|
|
}
|
|
|
|
export async function getServerSideProps(ctx) {
|
|
console.log('getServerSideProps')
|
|
ctx.res.end('already sent')
|
|
return { props: {} }
|
|
}
|