From 9faed932cc6d84f1dd52d395715e402cd91e9f59 Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Sun, 1 Dec 2024 23:15:00 +0800 Subject: [PATCH] chore: remove Vercel URL in CORS --- middleware.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 846a188..4257cac 100644 --- a/middleware.ts +++ b/middleware.ts @@ -8,7 +8,6 @@ export const middleware = (request: NextRequest) => { const VERCEL_URL = process.env.VERCEL_URL; const allowedOrigins = [ `https://${DOMAIN_NAME}`, - ...(VERCEL_URL ? [`https://${VERCEL_URL}`] : []), process.env.NODE_ENV === "development" ? "http://localhost:3000" : "", ].filter(Boolean);