platforms icon indicating copy to clipboard operation
platforms copied to clipboard

Added path to ignore returns 404

Open saranshisatgit opened this issue 2 years ago • 2 comments

if (session == null && path.startsWith("/verify")) { return NextResponse.next(); }

Added this under

/app/(auth)/verify/page.tsx

saranshisatgit avatar Nov 14 '23 20:11 saranshisatgit

Alright the code here does the magic just needed to implement this

 return NextResponse.rewrite(
      new URL(`/app${path === "/" ? "" : path}`, req.url),
    );

saranshisatgit avatar Nov 14 '23 21:11 saranshisatgit

Does this resolves the app.subdomain/sitename/slug 404 ?

mworks-proj avatar May 14 '24 06:05 mworks-proj