Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

exclude va paths

Steven Tey9d68c7bb4828
diff --git a/lib/constants.ts b/lib/constants.ts
index ebafe53383..f000b3e7f9 100644
--- a/lib/constants.ts
+++ b/lib/constants.ts
@@ -21,6 +21,9 @@ export const HOME_HOSTNAMES = new Set([
]);
export const RESERVED_KEYS = new Set([
+ "api",
+ "va",
+ "static",
"stats",
"proxy",
"pricing",
diff --git a/middleware.ts b/middleware.ts
index e4494a5e7e..5d40070c10 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -20,7 +20,7 @@ export const config = {
* 3. /static (inside /public)
* 4. all root files inside /public (e.g. /favicon.ico)
*/
- "/((?!api|_next|static|[\\w-]+\\.\\w+).*)",
+ "/((?!api|_next|static|va|[\\w-]+\\.\\w+).*)",
],
};