fix:提交更新
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# 百度搜索资源平台操作清单(部署后执行)
|
||||
|
||||
目标站点:https://www.dukanghaoke.com
|
||||
|
||||
## 1. 验证站点
|
||||
|
||||
1. 打开 https://ziyuan.baidu.com/ 登录
|
||||
2. 添加站点:`https://www.dukanghaoke.com`(若裸域跳转到 www,可一并添加)
|
||||
3. 验证归属(二选一):
|
||||
- **HTML 文件**:把平台下发的 `baidu_verify_xxxx.html` 放到 `public/` 后重新部署
|
||||
- **Meta 标签**:把验证码填入 `index.html` 中 `baidu-site-verification` 的 content(替换 REPLACE_WITH_BAIDU_CODE)后重新部署
|
||||
|
||||
## 2. 提交资源
|
||||
|
||||
1. Sitemap:提交 `https://www.dukanghaoke.com/sitemap.xml`
|
||||
2. 普通收录:优先推送
|
||||
- https://www.dukanghaoke.com/
|
||||
- https://www.dukanghaoke.com/brand
|
||||
- https://www.dukanghaoke.com/qingxiang
|
||||
- https://www.dukanghaoke.com/haoke
|
||||
- https://www.dukanghaoke.com/contact
|
||||
3. 有 API Token 时可用普通收录 API 每日推送核心 URL
|
||||
|
||||
## 3. 自检
|
||||
|
||||
- 浏览器打开 `https://www.dukanghaoke.com/robots.txt`、`/sitemap.xml`
|
||||
- 百度搜索:`site:www.dukanghaoke.com`
|
||||
- 品牌词「杜康好客」通常需数天到数周才稳定展示新站
|
||||
|
||||
## 4. OSS 图片(与收录并行)
|
||||
|
||||
1. 将 `public/assets`(及如有 `public/audio`)上传到 `oss://dukang-prod/dukang_office/assets/`(音频到 `.../audio/`)
|
||||
2. 确认 `.env.production` 中 `VITE_OSS_BASE` 与公网前缀一致后 `npm run build` 再部署
|
||||
3. 抽查:`{VITE_OSS_BASE}/assets/logo.png` 可公网打开
|
||||
|
||||
## 5. 缓存
|
||||
|
||||
- 站点 HTML:短校验(见 `deploy/nginx-cache.conf` / `public/_headers`)
|
||||
- Vite 带 hash 的 JS/CSS:长缓存
|
||||
- OSS 图片:建议 30 天 Cache-Control;发版后一般只需 purge 首页 HTML
|
||||
Reference in New Issue
Block a user