mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
Adds the four TanStack routes for the wildcard org/project pages: routes/org.[_].tsx - matches /org/_ exactly routes/org.[_].$.tsx - matches /org/_/... routes/project.[_].tsx - matches /project/_ exactly routes/project.[_].$.tsx - matches /project/_/... Files use the path-as-filename form (org.[_].tsx) rather than the nested-directory + index.tsx form because the directory form trips a router-generator bug at getRouteNodes.js:132: when an index.tsx has a bracket-escaped parent segment, originalRoutePath is wiped wholesale and the escape info is lost - downstream the literal _ segment gets stripped as if it were a pathless layout. Full rationale lives in the comment block in routes/org.[_].tsx. Next pages now accept either Next-style routeSlug (string[]) or TanStack-style _splat (string) and normalise to the array shape, so both runtimes can mount the same body.