Files
JJ KasperandGitHub e20f127a1f Fix missing non-deferred turbopack build items (#89616)
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.
2026-02-06 21:24:51 -08:00

23 lines
471 B
TypeScript

type StaticPathPageProps = {
slug: string
}
export function getStaticPaths() {
return {
paths: [{ params: { slug: 'alpha' } }, { params: { slug: 'beta' } }],
fallback: false,
}
}
export function getStaticProps({ params }: { params: { slug: string } }) {
return {
props: {
slug: params.slug,
},
}
}
export default function StaticPathPage({ slug }: StaticPathPageProps) {
return <h1>Pages getStaticPaths + getStaticProps: {slug}</h1>
}