Skip to content

Commit

Permalink
Fixes middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Aug 23, 2022
1 parent 9e4b4d4 commit 6ad0e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const V2_WHITELIST = ["/settings/admin"];
const middleware: NextMiddleware = async (req) => {
const url = req.nextUrl;

if (["/api/collect-events", "/api/auth"].some(url.pathname.startsWith)) {
if (["/api/collect-events", "/api/auth"].some((p) => url.pathname.startsWith(p))) {
const callbackUrl = url.searchParams.get("callbackUrl");
const { isBot } = userAgent(req);

Expand Down

1 comment on commit 6ad0e23

@vercel
Copy link

@vercel vercel bot commented on 6ad0e23 Aug 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cal – ./apps/web

cal-git-production-cal.vercel.app
app.cal.com
cal-cal.vercel.app
app.calendso.com

Please sign in to comment.