diff --git a/src/app/[category]/[slug]/page.tsx b/src/app/[category]/[slug]/page.tsx index f314dc2..ab57a65 100644 --- a/src/app/[category]/[slug]/page.tsx +++ b/src/app/[category]/[slug]/page.tsx @@ -9,6 +9,8 @@ import Breadcrumbs from "@/components/Breadcrumbs" import RequestDisplayElement from "@/components/RequestDisplayElement" import ResponseDisplayElement from "@/components/ResponseDisplayElement" +export const dynamic = "force-static" + export async function generateStaticParams() { const slugs: { category: string; slug: string }[] = [] @@ -19,7 +21,9 @@ export async function generateStaticParams() { for (const category of rawCategories) { if ( category.isFile() && - !["all.json", ".DS_Store", "root.json"].includes(category.name) + !["all.json", ".DS_Store", "root.json", "schema.json"].includes( + category.name, + ) ) { const categoryName = category.path.split("/").at(-1) diff --git a/src/app/[category]/page.tsx b/src/app/[category]/page.tsx index 0d547a7..5906c8a 100644 --- a/src/app/[category]/page.tsx +++ b/src/app/[category]/page.tsx @@ -14,6 +14,8 @@ import RequestDisplayElement from "@/components/RequestDisplayElement" import { LinkPill } from "@/components/link-pill" import { capitalize } from "@/utils/capitalize" +export const dynamic = "force-static" + export async function generateStaticParams() { const categories: { category: string }[] = [] diff --git a/src/app/page.tsx b/src/app/page.tsx index 4e8f1fe..8ce3527 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -8,6 +8,8 @@ import Link from "next/link" import { AboutTheProject } from "./_components/AboutTheProject" import HeroSection from "./_components/HeroSection" +export const dynamic = "force-static" + async function getRootJson() { const jsonFile = await fsPromises.readFile( path.resolve(__dirname, "../../../public/api/root.json"),