Skip to content

Commit

Permalink
I THINK I GOT IT!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Jun 1, 2024
1 parent 2180cc6 commit f7e293c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export async function middleware(request: NextRequest) {

// is static asset
if (isStaticAsset) {
return NextResponse.next()
return NextResponse.redirect(request.nextUrl)
}

const redirectPath =
Expand Down

0 comments on commit f7e293c

Please sign in to comment.