Skip to content

Commit ec02d02

Browse files
authored
Merge pull request #15431 from ethereum/staging
Staging -> dev
2 parents bd0969a + 3f845f3 commit ec02d02

File tree

5 files changed

+18
-25
lines changed

5 files changed

+18
-25
lines changed

app/[locale]/get-eth/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1515

1616
import GetEthPage from "./_components/get-eth"
1717

18+
import { routing } from "@/i18n/routing"
19+
1820
export default async function Page({
1921
params,
2022
}: {
@@ -40,6 +42,10 @@ export default async function Page({
4042
)
4143
}
4244

45+
export async function generateStaticParams() {
46+
return routing.locales.map((locale) => ({ locale }))
47+
}
48+
4349
export async function generateMetadata({
4450
params,
4551
}: {

app/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

middleware.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

src/lib/utils/metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from "next"
22
import { getTranslations } from "next-intl/server"
33

4-
import { DEFAULT_OG_IMAGE } from "@/lib/constants"
4+
import { DEFAULT_OG_IMAGE, SITE_URL } from "@/lib/constants"
55

66
import { getFullUrl } from "./url"
77

@@ -65,7 +65,7 @@ export const getMetadata = async ({
6565
return {
6666
title,
6767
description,
68-
metadataBase: new URL(url),
68+
metadataBase: new URL(SITE_URL),
6969
alternates: {
7070
canonical: url,
7171
languages: {

src/middleware.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)