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" + } ] } ]