Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

generateStaticParams

Steven Tey059c226fc679
diff --git a/app/dub.co/features/[slug]/page.tsx b/app/dub.co/features/[slug]/page.tsx
index 6dd9aeef3f..50c4e34fb8 100644
--- a/app/dub.co/features/[slug]/page.tsx
+++ b/app/dub.co/features/[slug]/page.tsx
@@ -29,6 +29,12 @@ export function generateMetadata({
});
}
+export async function generateStaticParams() {
+ return FEATURES_LIST.map(({ slug }) => ({
+ slug,
+ }));
+}
+
export default async function FeaturePage({
params,
}: {