mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This `draftMode` prop was missing from the previous PR: - https://github.com/vercel/next.js/pull/48669 It was added on `GetStaticPropsContext` but not on `GetServerSidePropsContext` so this PR fixes it. ---------
16 lines
227 B
TypeScript
16 lines
227 B
TypeScript
import Link from 'next/link'
|
|
|
|
export function getStaticProps() {
|
|
return { props: {} }
|
|
}
|
|
|
|
export default function () {
|
|
return (
|
|
<main>
|
|
<Link href="/" id="to-index">
|
|
To Index
|
|
</Link>
|
|
</main>
|
|
)
|
|
}
|