Skip to content

Commit abfea51

Browse files
committed
fixup!
1 parent d3d2bd4 commit abfea51

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

apps/site/app/[locale]/feed/[feed]/route.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,11 @@ export const generateStaticParams = async () =>
3535
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams
3636
export const dynamicParams = false;
3737

38-
export { dynamic, revalidate } from '#site/router/page';
38+
// Enforces that this route is used as static rendering
39+
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic
40+
export const dynamic = 'force-static';
41+
42+
// Ensures that this endpoint is invalidated and re-executed every X minutes
43+
// so that when new deployments happen, the data is refreshed
44+
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#revalidate
45+
export const revalidate = false;

apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ export const generateStaticParams = async () => [
5959
},
6060
];
6161

62-
export { dynamic } from '#site/router/page';
62+
// Enforces that this route is used as static rendering
63+
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic
64+
export const dynamic = 'force-static';

0 commit comments

Comments
 (0)