Buckets:
| import { useRouter } from 'next/router' | |
| export async function getServerSideProps({ query }) { | |
| return { | |
| props: { | |
| query, | |
| }, | |
| } | |
| } | |
| export default function Page(props) { | |
| return ( | |
| <> | |
| <div id="route"> | |
| top level route param:{' '} | |
| {props.query.optionalName === undefined | |
| ? 'undefined' | |
| : `[${props.query.optionalName.join('|')}]`} | |
| </div> | |
| <div id="keys">{JSON.stringify(Object.keys(props.query))}</div> | |
| <div id="asPath">{useRouter().asPath}</div> | |
| </> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 535 Bytes
- Xet hash:
- 831dda779f5464895e22f177e12d3e047a1c6c58fee18f74b413f2e8b909a746
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.