mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
Wire Vite `base`, Nitro `baseURL`, and the TanStack router `basepath` off the same `NEXT_PUBLIC_BASE_PATH` env var so the prefix stays in sync (all three layers are required — there's no single knob in TanStack Start). Defaults are unchanged when the var is empty. Also replace the `/` placeholder with the redirect rules that used to live in `next.config.ts`'s `redirects()`: platform → `/org` (or `/new/new-project` when deep-linked with `?next=new-project`), self-hosted → `/project/default`. Kept as a route (not a Nitro `routeRule`) so it works in `vite dev` and can branch on the query param.