import type { GetStaticProps } from 'next';
type Props = { timestamp: number };
export default function StaticForever({ timestamp }: Props) {
return (
Static forever
Timestamp: {timestamp}
);
}
// revalidate is intentionally omitted (revalidate: false): the cache entry
// must fall through to the defaultStaleAge based TTL in the cache handler.
export const getStaticProps: GetStaticProps = async () => {
return {
props: { timestamp: Date.now() },
};
};