From 4916d26d2fa48c8ae29994f08337d43dced8bd14 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Wed, 18 Mar 2026 15:46:42 +0000 Subject: [PATCH] Fix metadataBase warning in root layout Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/layout.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ca8bcbb5..5151ab00 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -11,7 +11,10 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); +const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000"; + export const metadata: Metadata = { + metadataBase: new URL(appUrl), title: "PlotLink", description: "Tokenise your story from day 1. Publish plots, drive trading, earn royalties from every trade — powered by the market, not a platform.", icons: { icon: "/favicon.png" },