silverwolf-x's picture
download
raw
442 Bytes
export const getStaticPaths = () => ({
paths: [
{ params: { optionalName: [] } },
{ params: { optionalName: ['one'] } },
{ params: { optionalName: ['one', 'two'] } },
],
fallback: false,
})
export const getStaticProps = ({ params }) => ({ props: { params } })
export default function Page({ params }) {
return (
<div id="success">
{params.optionalName ? params.optionalName.join(',') : 'yay'}
</div>
)
}

Xet Storage Details

Size:
442 Bytes
·
Xet hash:
9ffddb5a1032c4ce749aa2ac0f5898edfc7127e15838c1eed724bf94d5582e20

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.