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:
@@ -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
|
||||
Reference in New Issue
Block a user