silverwolf-x's picture
download
raw
429 Bytes
import { useRouter } from 'next/router'
export const getStaticPaths = () => ({
paths: [],
fallback: true,
})
export const getStaticProps = ({ params }) => ({ props: { params } })
export default function Page({ params }) {
const r = useRouter()
if (r.isFallback) {
return <div>loading</div>
}
return (
<div id="success">
{params.optionalName ? params.optionalName.join(',') : 'yay'}
</div>
)
}

Xet Storage Details

Size:
429 Bytes
·
Xet hash:
f151ee0f58b5c569bb71e6ba6c34236c1917d731a7d6320b8ecaadd3a1e40d0e

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