mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This is a follow-up to https://github.com/vercel/next.js/pull/26963 which after discussion changes to interpolate the decoded variant of the value into the path. x-ref: https://github.com/vercel/next.js/issues/24775 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
19 lines
288 B
JavaScript
19 lines
288 B
JavaScript
export const getStaticProps = ({ params }) => {
|
|
return {
|
|
props: {
|
|
params,
|
|
},
|
|
}
|
|
}
|
|
|
|
export const getStaticPaths = () => {
|
|
return {
|
|
paths: [],
|
|
fallback: 'blocking',
|
|
}
|
|
}
|
|
|
|
export default function Page(props) {
|
|
return <p id="props">{JSON.stringify(props)}</p>
|
|
}
|