mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This expands test suite for deferred entries experimental handling and fixes missing handling for metadata routes and route handlers when building the non-deferred entries.
23 lines
383 B
TypeScript
23 lines
383 B
TypeScript
type ServerSidePropsPageProps = {
|
|
timestamp: number
|
|
}
|
|
|
|
export function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
timestamp: Date.now(),
|
|
},
|
|
}
|
|
}
|
|
|
|
export default function ServerSidePropsPage({
|
|
timestamp,
|
|
}: ServerSidePropsPageProps) {
|
|
return (
|
|
<div>
|
|
<h1>Pages getServerSideProps</h1>
|
|
<p id="server-side-timestamp">{timestamp}</p>
|
|
</div>
|
|
)
|
|
}
|