Skip to content

Commit abc4c3c

Browse files
authored
Growthbook Export dynamic=force-static (#1156)
### Description Use force-static to ensure cdn cache=HIT for precomputed page
1 parent 516a35a commit abc4c3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flags-sdk/growthbook/app/[code]/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { ProductDetailPageProvider } from '@/components/utils/product-detail-pag
1010
import { productFlags, showSummerBannerFlag } from '@/flags'
1111
import { Main } from '@/components/main'
1212

13+
// We will precompute and rewrite to static variants.
14+
export const dynamic = 'force-static'
15+
1316
export default async function Page(props: {
1417
params: Promise<{ code: string }>
1518
}) {

0 commit comments

Comments
 (0)