mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 14:19:11 +03:00
routes/project/$ref/functions.tsx: shell wrapping EdgeFunctionsLayout. Reads `functionsLayoutTitle` from leaf staticData and honours a `skipFunctionsLayout: true` opt-out for the $functionSlug subtree (whose EdgeFunctionDetailsLayout already wraps in EdgeFunctionsLayout internally — same skip pattern as auth.tsx). 3 top-level leaves: - functions/new: simple Path-A re-export, title 'New'. - functions/index, functions/secrets: each had inline getLayout wrappers (PageHeader + actions). Hoisted to top-level exports (`EdgeFunctionsIndexPageWrapper`, `SecretsPageWrapper`) so the route files can re-use them — same pattern as branches/index. getLayout on each page now uses the exported wrapper too, so both runtimes render identical layout. Stage 2 ($functionSlug sub-shell + 5 leaves) follows.