File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
next-data/og/[category]/[title] Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff 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
3636export 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 ;
Original file line number Diff line number Diff 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' ;
You can’t perform that action at this time.
0 commit comments