Skip to content

Commit 03d96e2

Browse files
authored
fix: update metadata base URL retrieval logic (assistant-ui#2977)
1 parent 5371f5c commit 03d96e2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

apps/docs/app/layout.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import { Provider } from "./provider";
77
import { cn } from "@/lib/utils";
88

99
const getMetadataBase = () => {
10-
const appUrl = process.env["NEXT_PUBLIC_APP_URL"];
11-
if (appUrl) {
12-
return new URL(appUrl);
13-
}
14-
const vercelUrl = process.env["VERCEL_URL"];
15-
if (vercelUrl) {
16-
return new URL(`https://${vercelUrl}`);
17-
}
1810
if (process.env.NODE_ENV === "production") {
1911
return new URL("https://www.assistant-ui.com");
2012
}

0 commit comments

Comments
 (0)