diff --git a/app/components/home.tsx b/app/components/home.tsx index d23dfaab0..7a9b3079b 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -25,7 +25,7 @@ import dynamic from "next/dynamic"; import { REPO_URL } from "../constant"; import { ErrorBoundary } from "./error"; -import { APP_NAME, APP_SUB_NAME } from "../constant"; +import { APP_TITLE, APP_SUB_TITLE } from "../constant"; export function Loading(props: { noLogo?: boolean }) { return ( @@ -170,10 +170,10 @@ function _Home() { >
- { APP_NAME } + { APP_TITLE }
- { APP_SUB_NAME } + { APP_SUB_TITLE }
diff --git a/app/constant.ts b/app/constant.ts index 55e31d679..69e4b64e8 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -8,5 +8,5 @@ export const FETCH_TAG_URL = `https://api.github.com/repos/${OWNER}/${REPO}/tags export const RUNTIME_CONFIG_DOM = "danger-runtime-config"; -export const APP_NAME = "追求进步"; -export const APP_SUB_NAME = "Keeping pace with the AI era."; +export const APP_TITLE = "追求进步"; +export const APP_SUB_TITLE = "Keeping pace with the AI era."; diff --git a/app/layout.tsx b/app/layout.tsx index 38748ef37..59b726fa6 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,13 +4,15 @@ import "./styles/markdown.scss"; import "./styles/highlight.scss"; import { getBuildConfig } from "./config/build"; +import { APP_TITLE, APP_SUB_TITLE } from "./constant"; + const buildConfig = getBuildConfig(); export const metadata = { - title: "ChatGPT Next Web", - description: "Your personal ChatGPT Chat Bot.", + title: APP_TITLE, + description: APP_SUB_TITLE, appleWebApp: { - title: "ChatGPT Next Web", + title: APP_TITLE, statusBarStyle: "default", }, themeColor: "#fafafa",