We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68e71a4 commit 143405bCopy full SHA for 143405b
src/app/(frontend)/[locale]/posts/page.tsx
@@ -14,6 +14,10 @@ import { setRequestLocale } from 'next-intl/server'
14
15
export const revalidate = 600
16
17
+export function generateStaticParams() {
18
+ return routing.locales.map((locale) => ({ locale }))
19
+}
20
+
21
export default async function Page({ params }: { params: Promise<{ locale: Locale }> }) {
22
const { locale } = await params
23
// Enable static rendering
src/app/(frontend)/page.tsx
@@ -1 +1,5 @@
1
-export default function RootPage() {}
+export const dynamic = 'force-static'
2
3
+export default function RootPage() {
4
+ return null
5
0 commit comments