diff --git a/.env.example b/.env.example index 49458a6..98f7a07 100644 --- a/.env.example +++ b/.env.example @@ -26,7 +26,7 @@ VITE_IMAGE_API_URL=https://api.illlights.com/v1/img # ============================================ # 网站信息 # ============================================ -VITE_SITE_URL=https://searchgal.top +VITE_SITE_URL=https://www.searchgal.top VITE_SITE_NAME=SearchGal VITE_GITHUB_URL=https://github.com/Moe-Sakura/frontend diff --git a/README.md b/README.md index a718ade..f55c87e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [](https://www.typescriptlang.org/) [](https://tailwindcss.com/) -🌐 **在线访问**: [searchgal.top](https://searchgal.top) +🌐 **在线访问**: [searchgal.top](https://www.searchgal.top) ## ✨ 特性 @@ -220,7 +220,7 @@ pnpm run build 本项目遵循 [llms.txt](https://llmstxt.org/) 规范,为 AI 助手和大语言模型提供了结构化的项目文档。 - 📄 访问 `/llms.txt` 获取项目的 LLM 友好文档 -- 🔗 在线地址: [searchgal.top/llms.txt](https://searchgal.top/llms.txt) +- 🔗 在线地址: [searchgal.top/llms.txt](https://www.searchgal.top/llms.txt) ## 🤝 贡献 @@ -278,7 +278,7 @@ vim .env ## 📮 联系方式 - GitHub: [@Moe-Sakura](https://github.com/Moe-Sakura) -- 项目主页: [searchgal.top](https://searchgal.top) +- 项目主页: [searchgal.top](https://www.searchgal.top) --- diff --git a/docs/ENV_GUIDE.md b/docs/ENV_GUIDE.md index e6f4ceb..75b4bc0 100644 --- a/docs/ENV_GUIDE.md +++ b/docs/ENV_GUIDE.md @@ -54,7 +54,7 @@ pnpm dev | 变量名 | 说明 | 默认值 | |--------|------|--------| -| `VITE_SITE_URL` | 网站 URL | https://searchgal.top | +| `VITE_SITE_URL` | 网站 URL | https://www.searchgal.top | | `VITE_SITE_NAME` | 网站名称 | SearchGal | | `VITE_GITHUB_URL` | GitHub 仓库 | https://github.com/Moe-Sakura/frontend | diff --git a/index.html b/index.html index 0a6b045..67a250b 100644 --- a/index.html +++ b/index.html @@ -81,13 +81,13 @@ - + - + @@ -95,7 +95,7 @@ - + @@ -122,7 +122,7 @@ - + diff --git a/public/_redirects b/public/_redirects index 47405f2..abcbc28 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,3 +1 @@ /* /404 404 -https://www.searchgal.top/* https://searchgal.top/:splat 301! -https://sg.saop.cc/* https://searchgal.top/:splat 301! \ No newline at end of file diff --git a/src/components/CommentsModal.vue b/src/components/CommentsModal.vue index 5e1124b..28ebe40 100644 --- a/src/components/CommentsModal.vue +++ b/src/components/CommentsModal.vue @@ -146,7 +146,7 @@ function initArtalk() { try { artalkInstance = Artalk.init({ el: '#Comments', - pageKey: 'https://searchgal.top', + pageKey: 'https://www.searchgal.top', pageTitle: 'Galgame 聚合搜索', server: 'https://artalk.saop.cc', site: 'Galgame 聚合搜索', diff --git a/src/components/SearchHeader.vue b/src/components/SearchHeader.vue index 0b27960..fb552ba 100644 --- a/src/components/SearchHeader.vue +++ b/src/components/SearchHeader.vue @@ -315,7 +315,7 @@
- 本站已更换新域名 searchgal.top,请更新书签! + 本站已更换新域名 searchgal.top,请更新书签!
💡 如需迁移搜索记录,可在设置中导出历史后,到新站导入即可。 diff --git a/src/config/env.ts b/src/config/env.ts index feb71dc..c728bc3 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -17,7 +17,7 @@ export const APP_CONFIG = { name: import.meta.env.VITE_APP_NAME || 'SearchGal', title: import.meta.env.VITE_APP_TITLE || 'SearchGal - Galgame 聚合搜索', description: import.meta.env.VITE_APP_DESCRIPTION || 'Galgame 资源聚合搜索引擎', - url: import.meta.env.VITE_APP_URL || 'https://searchgal.top', + url: import.meta.env.VITE_APP_URL || 'https://www.searchgal.top', } as const // 功能开关 diff --git a/src/config/index.ts b/src/config/index.ts index 151ad6d..2372d28 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -130,7 +130,7 @@ export const config: AppConfig = { }, site: { - url: getEnv('VITE_SITE_URL', 'https://searchgal.top'), + url: getEnv('VITE_SITE_URL', 'https://www.searchgal.top'), name: getEnv('VITE_SITE_NAME', 'SearchGal'), githubUrl: getEnv('VITE_GITHUB_URL', 'https://github.com/Moe-Sakura/frontend'), }, diff --git a/vercel.json b/vercel.json deleted file mode 100644 index fb3e9fe..0000000 --- a/vercel.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "redirects": [ - { - "source": "/:path*", - "has": [ - { - "type": "host", - "value": "www.searchgal.top" - } - ], - "destination": "https://searchgal.top/:path*", - "permanent": true - }, - { - "source": "/:path*", - "has": [ - { - "type": "host", - "value": "sg.saop.cc" - } - ], - "destination": "https://searchgal.top/:path*", - "permanent": true - } - ] -}