Skip to content

Commit

Permalink
fix: disabled cache in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 13, 2023
1 parent 4d9696b commit 33b8f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export async function middleware(req: NextRequest, context: NextFetchEvent) {
return redirectShop(req);
}
}
//
// if (isDev) {
// return NextResponse.next();
// }

if (isDev) {
return NextResponse.next();
}
// 👇 below only works for production

if (!userKey) {
Expand Down

1 comment on commit 33b8f49

@vercel
Copy link

@vercel vercel bot commented on 33b8f49 Mar 13, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.