Files
supabase/apps
Alaister Young 3662e52f62 feat(studio): migrate /database/triggers/* + force cva into own chunk (stage 4)
- 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.
2026-05-08 15:09:06 +08:00
..
2026-05-07 18:44:15 -04:00