From bdd584e96ae9aa91d4a8727d1661f94fa361be4f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 07:11:37 +0000 Subject: [PATCH] Fix vercel.json rewrites to exclude API routes cgen-216865069b9a4300bf74ef7162a98b48 --- vercel.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vercel.json b/vercel.json index 18ed331e..95831f9f 100644 --- a/vercel.json +++ b/vercel.json @@ -56,13 +56,25 @@ { "source": "/:path(.*)", "has": [{ "type": "host", "value": "*.aethex.me" }], + "missing": [{ "type": "header", "key": "x-vercel-rewrite-override" }], "destination": "/index.html" }, { "source": "/:path(.*)", "has": [{ "type": "host", "value": "*.aethex.space" }], + "missing": [{ "type": "header", "key": "x-vercel-rewrite-override" }], "destination": "/index.html" }, + { + "source": "/api/:path(.*)", + "has": [{ "type": "host", "value": "*.aethex.me" }], + "destination": "/api/:path" + }, + { + "source": "/api/:path(.*)", + "has": [{ "type": "host", "value": "*.aethex.space" }], + "destination": "/api/:path" + }, { "source": "/", "destination": "/index.html" }, { "source": "/login", "destination": "/index.html" }, { "source": "/login/:path*", "destination": "/index.html" },