Skip to content

Commit

Permalink
chore: remove Vercel URL in CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 1, 2024
1 parent 23c6d3e commit 9faed93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9faed93

Please sign in to comment.