·7 min read
Your Next.js route 404s because the folder name starts with an underscore
I shipped a default API route at app/api/__log/route.ts. It never mounted. Next.js treats any folder starting with an underscore as private and keeps it out of routing, with no build error and no warning — here are the two checks I added so nobody hits it again.