From 6d25fc866d83a69cbf816cc8cbacfc3b1c688a9a Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 24 Oct 2026 19:12:59 +0000 Subject: [PATCH] Revert inert routing config for /growth and /.agents Neither vercel.json rewrites nor redirects nor a _redirects file has any effect: the origin serves files literally and no routing layer is in front of it (no Vercel or Pages headers on any response). Leaving dead config in place would imply the paths are blocked when they are not. protection is robots.txt only (Disallow: /*.md$) until these docs live outside the deployed tree. --- _redirects | 4 ---- vercel.json | 32 ++++++++++++++++++++++++-------- 2 files changed, 24 insertions(+), 12 deletions(-) delete mode 100644 _redirects diff --git a/_redirects b/_redirects deleted file mode 100644 index c787b91..0000000 --- a/_redirects +++ /dev/null @@ -1,4 +0,0 @@ -# Cloudflare Pages-style redirects. Vercel rewrites/redirects do not apply here: -# the site is served by Cloudflare, and static files win before any framework config. -/.agents/* /404.html 302 -/growth/* /404.html 302 diff --git a/vercel.json b/vercel.json index dd34f47..3b6bfc4 100644 --- a/vercel.json +++ b/vercel.json @@ -5,8 +5,6 @@ "trailingSlash": true, "cleanUrls": true, "redirects": [ - { "source": "/.agents/:path*", "destination": "/404.html", "permanent": false }, - { "source": "/growth/:path*", "destination": "/404.html", "permanent": false }, { "source": "/en/index.html", "destination": "/en/", @@ -257,27 +255,45 @@ { "source": "/(.*)", "headers": [ - { "key": "X-Content-Type-Options", "value": "nosniff" }, - { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, - { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" } + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Referrer-Policy", + "value": "strict-origin-when-cross-origin" + } ] }, { "source": "/css/(.*)", "headers": [ - { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } ] }, { "source": "/js/(.*)", "headers": [ - { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } ] }, { "source": "/components/(.*)", "headers": [ - { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } ] } ]