mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes https://github.com/vercel/next.js/issues/12046 Fixes https://github.com/vercel/next.js/issues/11992 Closes https://github.com/vercel/next.js/pull/13456
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
export async function getStaticPaths() {
|
|
return {
|
|
paths: [{ params: { slug: 'prerendered' } }],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export async function getStaticProps({ params }) {
|
|
return { props: { slug: params.slug } }
|
|
}
|
|
|
|
export default function GspPage({ slug }) {
|
|
return <div id="prop">{slug}</div>
|
|
}
|