feat(seo): enhance seo and security configurations

- Remove static robots.txt and generate it dynamically during build
- Add security headers in vercel.json
- Improve structured data with BreadcrumbList and Course schema
- Make site URL dynamic based on deployment environment
- Enhance sitemap configuration with priority and changefreq
This commit is contained in:
sanbuphy
2026-03-02 21:28:16 +08:00
parent 6ed901a1e0
commit 7c1abbb407
3 changed files with 136 additions and 26 deletions
-18
View File
@@ -1,18 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Allow: /
# 禁止搜索引擎抓取旧版内容(已迁移到新目录结构)
Disallow: /zh-cn/extra/
Disallow: /zh-cn/examples/
Disallow: /zh-cn/project/
Disallow: /en/extra/
Disallow: /en/examples/
Disallow: /en/project/
# 禁止抓取 VitePress 缓存和构建文件
Disallow: /.vitepress/
Disallow: /@fs/
# Sitemap 位置
Sitemap: https://datawhalechina.github.io/easy-vibe/sitemap.xml.gz