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" },