Skip to content

Commit e4f6e65

Browse files
committed
fix: update metadataBase URL in layout.tsx
This commit updates the `metadataBase` property in the `layout.tsx` file to use the environment variable `NEXT_PUBLIC_SITE_URL`, defaulting to "http://localhost:3000" if not set. This change ensures that the application correctly references the base URL for metadata across different environments.
1 parent 250771c commit e4f6e65

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/app/layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const robotoMono = Roboto_Mono({
1818
});
1919

2020
export const metadata: Metadata = {
21-
metadataBase: new URL(
22-
process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000"
23-
),
2421
other: {
2522
"color-scheme": "light dark",
2623
},

0 commit comments

Comments
 (0)