From 86f152daf7029101f57180186f7cb75132ee08ec Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 24 Oct 2026 19:09:20 +0000 Subject: [PATCH] Block /growth/ and /.agents/ with redirects, not rewrites Vercel serves an existing static file before applying a rewrite, so the previous rewrite block did nothing and the strategy docs returned 200. Redirects run before the filesystem check, so these now leave the site. --- vercel.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vercel.json b/vercel.json index 76a465a..dd34f47 100644 --- a/vercel.json +++ b/vercel.json @@ -5,6 +5,8 @@ "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/", @@ -251,10 +253,6 @@ "permanent": true } ], - "rewrites": [ - { "source": "/.agents/:path*", "destination": "/__internal-only" }, - { "source": "/growth/:path*", "destination": "/__internal-only" } - ], "headers": [ { "source": "/(.*)",