chore: 更新网站主域名为 www.searchgal.top

- 移除旧域名重定向规则,不再将 www 和非 www 版本相互重定向
- 更新所有配置文件、环境变量和代码中的站点 URL 引用
- 更新文档中的示例链接和说明
- 删除 Vercel 重定向配置文件,简化部署配置
- 更新 Open Graph 和 Twitter 卡片中的元数据 URL
This commit is contained in:
AdingApkgg
2026-01-31 07:32:01 +08:00
parent b26a1abef0
commit 201afc1493
10 changed files with 14 additions and 42 deletions

View File

@@ -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_SITE_NAME=SearchGal
VITE_GITHUB_URL=https://github.com/Moe-Sakura/frontend VITE_GITHUB_URL=https://github.com/Moe-Sakura/frontend

View File

@@ -7,7 +7,7 @@
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/) [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/)
[![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-38bdf8.svg)](https://tailwindcss.com/) [![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-38bdf8.svg)](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](https://llmstxt.org/) 规范,为 AI 助手和大语言模型提供了结构化的项目文档。
- 📄 访问 `/llms.txt` 获取项目的 LLM 友好文档 - 📄 访问 `/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) - GitHub: [@Moe-Sakura](https://github.com/Moe-Sakura)
- 项目主页: [searchgal.top](https://searchgal.top) - 项目主页: [searchgal.top](https://www.searchgal.top)
--- ---

View File

@@ -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_SITE_NAME` | 网站名称 | SearchGal |
| `VITE_GITHUB_URL` | GitHub 仓库 | https://github.com/Moe-Sakura/frontend | | `VITE_GITHUB_URL` | GitHub 仓库 | https://github.com/Moe-Sakura/frontend |

View File

@@ -81,13 +81,13 @@
<!-- Open Graph / Facebook --> <!-- Open Graph / Facebook -->
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:url" content="https://searchgal.top/" /> <meta property="og:url" content="https://www.searchgal.top/" />
<meta property="og:title" content="SearchGal - Galgame 聚合搜索" /> <meta property="og:title" content="SearchGal - Galgame 聚合搜索" />
<meta <meta
property="og:description" property="og:description"
content="Galgame 资源聚合搜索引擎,支持多站点搜索、游戏信息查询、补丁下载。一站式搜索体验,快速找到你想要的 Galgame 资源。" content="Galgame 资源聚合搜索引擎,支持多站点搜索、游戏信息查询、补丁下载。一站式搜索体验,快速找到你想要的 Galgame 资源。"
/> />
<meta property="og:image" content="https://searchgal.top/logo.svg" /> <meta property="og:image" content="https://www.searchgal.top/logo.svg" />
<meta property="og:image:width" content="1200" /> <meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" /> <meta property="og:image:height" content="630" />
<meta property="og:locale" content="zh_CN" /> <meta property="og:locale" content="zh_CN" />
@@ -95,7 +95,7 @@
<!-- Twitter --> <!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" /> <meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://searchgal.top/" /> <meta property="twitter:url" content="https://www.searchgal.top/" />
<meta property="twitter:title" content="SearchGal - Galgame 聚合搜索" /> <meta property="twitter:title" content="SearchGal - Galgame 聚合搜索" />
<meta <meta
property="twitter:description" property="twitter:description"
@@ -103,7 +103,7 @@
/> />
<meta <meta
property="twitter:image" property="twitter:image"
content="https://searchgal.top/logo.svg" content="https://www.searchgal.top/logo.svg"
/> />
<!-- Favicon --> <!-- Favicon -->
@@ -122,7 +122,7 @@
<meta name="msapplication-config" content="/browserconfig.xml" /> <meta name="msapplication-config" content="/browserconfig.xml" />
<!-- Canonical URL --> <!-- Canonical URL -->
<link rel="canonical" href="https://searchgal.top/" /> <link rel="canonical" href="https://www.searchgal.top/" />
<!-- 预连接关键资源 --> <!-- 预连接关键资源 -->
<link rel="preconnect" href="https://api.illlights.com" /> <link rel="preconnect" href="https://api.illlights.com" />

View File

@@ -1,3 +1 @@
/* /404 404 /* /404 404
https://www.searchgal.top/* https://searchgal.top/:splat 301!
https://sg.saop.cc/* https://searchgal.top/:splat 301!

View File

@@ -146,7 +146,7 @@ function initArtalk() {
try { try {
artalkInstance = Artalk.init({ artalkInstance = Artalk.init({
el: '#Comments', el: '#Comments',
pageKey: 'https://searchgal.top', pageKey: 'https://www.searchgal.top',
pageTitle: 'Galgame 聚合搜索', pageTitle: 'Galgame 聚合搜索',
server: 'https://artalk.saop.cc', server: 'https://artalk.saop.cc',
site: 'Galgame 聚合搜索', site: 'Galgame 聚合搜索',

View File

@@ -315,7 +315,7 @@
</div> </div>
<div class="text-sm text-pink-800 dark:text-pink-200"> <div class="text-sm text-pink-800 dark:text-pink-200">
<p> <p>
本站已更换新域名 <a href="https://searchgal.top" class="font-bold text-[#ff1493] dark:text-[#ff69b4] hover:underline">searchgal.top</a>请更新书签 本站已更换新域名 <a href="https://www.searchgal.top" class="font-bold text-[#ff1493] dark:text-[#ff69b4] hover:underline">searchgal.top</a>请更新书签
</p> </p>
<p class="mt-1.5 text-pink-600 dark:text-pink-300"> <p class="mt-1.5 text-pink-600 dark:text-pink-300">
💡 如需迁移搜索记录可在<strong class="font-semibold">设置</strong>中导出历史后到新站导入即可 💡 如需迁移搜索记录可在<strong class="font-semibold">设置</strong>中导出历史后到新站导入即可

View File

@@ -17,7 +17,7 @@ export const APP_CONFIG = {
name: import.meta.env.VITE_APP_NAME || 'SearchGal', name: import.meta.env.VITE_APP_NAME || 'SearchGal',
title: import.meta.env.VITE_APP_TITLE || 'SearchGal - Galgame 聚合搜索', title: import.meta.env.VITE_APP_TITLE || 'SearchGal - Galgame 聚合搜索',
description: import.meta.env.VITE_APP_DESCRIPTION || '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 } as const
// 功能开关 // 功能开关

View File

@@ -130,7 +130,7 @@ export const config: AppConfig = {
}, },
site: { site: {
url: getEnv('VITE_SITE_URL', 'https://searchgal.top'), url: getEnv('VITE_SITE_URL', 'https://www.searchgal.top'),
name: getEnv('VITE_SITE_NAME', 'SearchGal'), name: getEnv('VITE_SITE_NAME', 'SearchGal'),
githubUrl: getEnv('VITE_GITHUB_URL', 'https://github.com/Moe-Sakura/frontend'), githubUrl: getEnv('VITE_GITHUB_URL', 'https://github.com/Moe-Sakura/frontend'),
}, },

View File

@@ -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
}
]
}