mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
- Wrap Outlet with ProfileProvider from @/lib/profile inside the feature flag provider so profile state, auto-creation, and the 401 sign-out redirect work in the Vite build (same order as _app.tsx). - ssr.noExternal for /^next(\/|$)/ so our nextCompat resolveId shims beat Vite's SSR externalizer. Without this, next/* ids were resolved to the shim at build time but left as external runtime imports under Vite dev SSR, so Node would load Next's real module and ProfileProvider's useRouter threw "NextRouter was not mounted".