Skip to content

Commit 65015aa

Browse files
authored
fix(templates): add force-static to pages and posts (#8527)
1 parent 0f7d444 commit 65015aa

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

templates/website/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
},
1313
"aliases": {
1414
"components": "@/components",
15-
"utils": "@/_utilities"
15+
"utils": "@/utilities"
1616
}
1717
}

templates/website/src/app/(frontend)/[slug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { RenderBlocks } from '@/blocks/RenderBlocks'
1313
import { RenderHero } from '@/heros/RenderHero'
1414
import { generateMeta } from '@/utilities/generateMeta'
1515

16+
export const dynamic = 'force-static'
17+
1618
export async function generateStaticParams() {
1719
const payload = await getPayloadHMR({ config: configPromise })
1820
const pages = await payload.find({

templates/website/src/app/(frontend)/posts/[slug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { PostHero } from '@/heros/PostHero'
1414
import { generateMeta } from '@/utilities/generateMeta'
1515
import PageClient from './page.client'
1616

17+
export const dynamic = 'force-static'
18+
1719
export async function generateStaticParams() {
1820
const payload = await getPayloadHMR({ config: configPromise })
1921
const posts = await payload.find({

0 commit comments

Comments
 (0)