Skip to content

Commit 143405b

Browse files
committed
fix if work
1 parent 68e71a4 commit 143405b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/app/(frontend)/[locale]/posts/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { setRequestLocale } from 'next-intl/server'
1414

1515
export const revalidate = 600
1616

17+
export function generateStaticParams() {
18+
return routing.locales.map((locale) => ({ locale }))
19+
}
20+
1721
export default async function Page({ params }: { params: Promise<{ locale: Locale }> }) {
1822
const { locale } = await params
1923
// Enable static rendering

src/app/(frontend)/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export default function RootPage() {}
1+
export const dynamic = 'force-static'
2+
3+
export default function RootPage() {
4+
return null
5+
}

0 commit comments

Comments
 (0)