Skip to content
Source
Sign inSign up
samwillis/hackernews-realtime
Open History to see the last commit

page.tsx

11 lines402 Bytes

1import { notFound } from "next/navigation";
2import { fixture } from "@/lib/fixture";
3import { UpdateFixture } from "./update-fixture";
4export const dynamic = "force-dynamic";
5export default function Page() {
6 if (process.env.HN_FIXTURE !== "1" || process.env.NODE_ENV === "production")
7 notFound();
8 return (
9 <UpdateFixture initialStories={fixture("top", 1)} initialNow={Date.now()} />
10 );