mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes #11831 Fixes #12212 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
21 lines
357 B
JavaScript
21 lines
357 B
JavaScript
export default function Page({ value }) {
|
|
return value
|
|
}
|
|
|
|
export const getStaticProps = ({ params }) => ({
|
|
props: {
|
|
value: params.slug,
|
|
},
|
|
})
|
|
|
|
export const getStaticPaths = () => {
|
|
return {
|
|
paths: [
|
|
{ params: { slug: '1' } },
|
|
{ params: { slug: '2.ext' } },
|
|
{ params: { slug: '3.html' } },
|
|
],
|
|
fallback: false,
|
|
}
|
|
}
|