Buckets:
| import Link from 'next/link' | |
| import type { GetStaticProps } from 'next' | |
| type Props = { | |
| random: number | |
| draftMode: string | |
| } | |
| export const getStaticProps: GetStaticProps<Props> = ({ draftMode }) => { | |
| return { | |
| props: { | |
| random: Math.random(), | |
| draftMode: Boolean(draftMode).toString(), | |
| }, | |
| revalidate: 100000, | |
| } | |
| } | |
| export default function Another(props: Props) { | |
| return ( | |
| <> | |
| <h1>Another</h1> | |
| <p> | |
| Draft Mode: <em id="draft">{props.draftMode}</em> | |
| </p> | |
| <p> | |
| Random: <em id="rand">{props.random}</em> | |
| </p> | |
| <Link href="/">Go home</Link> | |
| </> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 630 Bytes
- Xet hash:
- dc324e84dd64b20c8e859f3b34d679d37e143347f9c86315c31912aeed114bcf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.