mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
- Adds routes/project/$ref/database/triggers.tsx as a sub-shell that
inlines the inner part of DatabaseTriggersLayout (PageLayout + the
permission gate + nav items). Can't re-use DatabaseTriggersLayout
directly because it internally wraps in <DatabaseLayout title="Triggers">,
which would double-wrap under the database.tsx shell. The Next-side
component is left untouched.
- Adds 3 leaves: triggers/{index,data,event} as Path-A re-exports.
- Forces `class-variance-authority` into its own chunk via Rolldown
manualChunks. Without this, adding the triggers shell nudges Rolldown
into a chunk layout where TreeView is split out and imports `cva`
back from the `ui` chunk while `ui` imports `TreeView` — a bundle-
level circular dep that leaves `cva` undefined when TreeView's
top-level cva(...) initializer runs at SSR prerender. Source has no
cycle; this is purely a chunking artifact. Pinning cva to its own
chunk breaks the cycle and is robust against future chunk shifts.