vercel / platforms

A full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router and the Vercel Domains API.
https://app.vercel.pub
5.62k stars 734 forks source link

Added path to ignore returns 404 #356

Open saranshisatgit opened 10 months ago

saranshisatgit commented 10 months ago

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

Added this under

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

saranshisatgit commented 10 months ago

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

 return NextResponse.rewrite(
      new URL(`/app${path === "/" ? "" : path}`, req.url),
    );
mworks-proj commented 4 months ago

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