platforms
platforms copied to clipboard
Added path to ignore returns 404
if (session == null && path.startsWith("/verify")) { return NextResponse.next(); }
Added this under
/app/(auth)/verify/page.tsx
Alright the code here does the magic just needed to implement this
return NextResponse.rewrite(
new URL(`/app${path === "/" ? "" : path}`, req.url),
);
Does this resolves the app.subdomain/sitename/slug 404 ?