Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

refactor: simplify static parameter generation by removing changelog filter in page.tsx

Aniket-50826015e3b6d0b
diff --git a/app/(app)/docs/[[...slug]]/page.tsx b/app/(app)/docs/[[...slug]]/page.tsx
index 448a2cf..d1e6b84 100644
--- a/app/(app)/docs/[[...slug]]/page.tsx
+++ b/app/(app)/docs/[[...slug]]/page.tsx
@@ -27,8 +27,7 @@ export const revalidate = false;
export const dynamic = "force-static";
export const dynamicParams = false;
-export const generateStaticParams = () =>
- source.generateParams().filter((param) => param.slug?.[0] !== "changelog");
+export const generateStaticParams = () => source.generateParams();
export const generateMetadata = async (props: {
params: Promise<{ slug?: string[] }>;