commit eab011889438469db07bcb174b078d9e087a342c
parent 65e9032175a280768229a018c471714084792c89
Author: Amit Dutta <mail@amit.is-a.dev>
Date: Tue, 21 Jul 2026 09:06:55 +0530
Modify redirects and add rewrites in vercel.json
Updated the source pattern in redirects to exclude 'docs' and 'docs.html'. Added new rewrites for batch requests.
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/vercel.json b/vercel.json
@@ -2,7 +2,7 @@
"$schema": "https://openapi.vercel.sh/vercel.json",
"redirects": [
{
- "source": "/:filename",
+ "source": "/:filename((?!docs$|docs\\.html$).*)",
"destination": "https://huggingface.co/datasets/notamitgamer/uploads/resolve/main/:filename",
"permanent": false
}
@@ -11,6 +11,14 @@
{
"source": "/api/(.*)",
"destination": "/api/index"
+ },
+ {
+ "source": "/batch/(.*)",
+ "destination": "/api/index"
+ },
+ {
+ "source": "/docs",
+ "destination": "/docs.html"
}
]
}