File tree Expand file tree Collapse file tree 5 files changed +18
-25
lines changed Expand file tree Collapse file tree 5 files changed +18
-25
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
15
15
16
16
import GetEthPage from "./_components/get-eth"
17
17
18
+ import { routing } from "@/i18n/routing"
19
+
18
20
export default async function Page ( {
19
21
params,
20
22
} : {
@@ -40,6 +42,10 @@ export default async function Page({
40
42
)
41
43
}
42
44
45
+ export async function generateStaticParams ( ) {
46
+ return routing . locales . map ( ( locale ) => ( { locale } ) )
47
+ }
48
+
43
49
export async function generateMetadata ( {
44
50
params,
45
51
} : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import createMiddleware from "next-intl/middleware"
2
+
3
+ import { routing } from "./src/i18n/routing"
4
+
5
+ export default createMiddleware ( routing )
6
+
7
+ // Simplified matcher pattern
8
+ export const config = {
9
+ matcher : [ "/((?!api|_next|_vercel|.*\\.[^/]*$).*)" ] ,
10
+ }
Original file line number Diff line number Diff line change 1
1
import type { Metadata } from "next"
2
2
import { getTranslations } from "next-intl/server"
3
3
4
- import { DEFAULT_OG_IMAGE } from "@/lib/constants"
4
+ import { DEFAULT_OG_IMAGE , SITE_URL } from "@/lib/constants"
5
5
6
6
import { getFullUrl } from "./url"
7
7
@@ -65,7 +65,7 @@ export const getMetadata = async ({
65
65
return {
66
66
title,
67
67
description,
68
- metadataBase : new URL ( url ) ,
68
+ metadataBase : new URL ( SITE_URL ) ,
69
69
alternates : {
70
70
canonical : url ,
71
71
languages : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments