Files
77ef61ea35 Route Module Updates (#51433)
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]>
2023-06-21 15:30:24 -07:00

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: {} }
}