mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-03-15 04:53:18 +08:00
chore: 更新网站主域名为 www.searchgal.top
- 移除旧域名重定向规则,不再将 www 和非 www 版本相互重定向 - 更新所有配置文件、环境变量和代码中的站点 URL 引用 - 更新文档中的示例链接和说明 - 删除 Vercel 重定向配置文件,简化部署配置 - 更新 Open Graph 和 Twitter 卡片中的元数据 URL
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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 |
|
||||
|
||||
|
||||
10
index.html
10
index.html
@@ -81,13 +81,13 @@
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<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:description"
|
||||
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:height" content="630" />
|
||||
<meta property="og:locale" content="zh_CN" />
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
<!-- Twitter -->
|
||||
<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:description"
|
||||
@@ -103,7 +103,7 @@
|
||||
/>
|
||||
<meta
|
||||
property="twitter:image"
|
||||
content="https://searchgal.top/logo.svg"
|
||||
content="https://www.searchgal.top/logo.svg"
|
||||
/>
|
||||
|
||||
<!-- Favicon -->
|
||||
@@ -122,7 +122,7 @@
|
||||
<meta name="msapplication-config" content="/browserconfig.xml" />
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
/* /404 404
|
||||
https://www.searchgal.top/* https://searchgal.top/:splat 301!
|
||||
https://sg.saop.cc/* https://searchgal.top/:splat 301!
|
||||
@@ -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 聚合搜索',
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
</div>
|
||||
<div class="text-sm text-pink-800 dark:text-pink-200">
|
||||
<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 class="mt-1.5 text-pink-600 dark:text-pink-300">
|
||||
💡 如需迁移搜索记录,可在<strong class="font-semibold">设置</strong>中导出历史后,到新站导入即可。
|
||||
|
||||
@@ -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
|
||||
|
||||
// 功能开关
|
||||
|
||||
@@ -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'),
|
||||
},
|
||||
|
||||
26
vercel.json
26
vercel.json
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user