Files
supabase/apps
Alaister Young ee9c9bbc9f fix(studio): expose router.route in next/router compat shim
Next's pages-router useRouter() returns both \`pathname\` and \`route\`
holding the bracketed route pattern (always the same value in pages
mode). Our compat shim only exposed \`pathname\`, so studio call sites
that read \`router.route\` (AppLayout/BranchLink, AppLayout/ProjectDropdown)
got \`undefined\` and crashed when sanitizeRoute() did \`route.split('/')\`.
Surfaced when opening the project selector dropdown — BranchLink
errored at render and tripped the route's ErrorBoundary.

Mirror \`pathname\` into \`route\` in both shims (next/router and
next/compat/router).
2026-05-08 15:19:46 +08:00
..
2026-05-07 18:44:15 -04:00