mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
Update layout.tsx
This commit is contained in:
parent
e0f4615b55
commit
76ab2451d4
@ -6,8 +6,8 @@ import { getBuildConfig } from "./config/build";
|
|||||||
import { getClientConfig } from "./config/client";
|
import { getClientConfig } from "./config/client";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "ChatGPT Next Web",
|
title: "AdExGPT Web",
|
||||||
description: "Your personal ChatGPT Chat Bot.",
|
description: "Our AdExGPT assistant - powered by Gen AI.",
|
||||||
viewport: {
|
viewport: {
|
||||||
width: "device-width",
|
width: "device-width",
|
||||||
initialScale: 1,
|
initialScale: 1,
|
||||||
@ -18,7 +18,7 @@ export const metadata = {
|
|||||||
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
|
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
|
||||||
],
|
],
|
||||||
appleWebApp: {
|
appleWebApp: {
|
||||||
title: "ChatGPT Next Web",
|
title: "AdExGPT Mobile",
|
||||||
statusBarStyle: "default",
|
statusBarStyle: "default",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -34,6 +34,13 @@ export default function RootLayout({
|
|||||||
<meta name="config" content={JSON.stringify(getClientConfig())} />
|
<meta name="config" content={JSON.stringify(getClientConfig())} />
|
||||||
<link rel="manifest" href="/site.webmanifest"></link>
|
<link rel="manifest" href="/site.webmanifest"></link>
|
||||||
<script src="/serviceWorkerRegister.js" defer></script>
|
<script src="/serviceWorkerRegister.js" defer></script>
|
||||||
|
<script>
|
||||||
|
if (window.location.hostname === "adexgpt.vercel.app") {
|
||||||
|
var currentPath = window.location.pathname + window.location.search + window.location.hash;
|
||||||
|
var newUrl = "https://adexgpt.adexpartners.com" + currentPath;
|
||||||
|
window.location.href = newUrl;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>{children}</body>
|
<body>{children}</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user