All blocks

Content

Templates

Typed, versioned templates (system starters and tenant forks) that create records, with merge fields and workflows started on each record they create.

DocsModes:managedcustom
terminal
npx better-supabase sql add templates
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by templates; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      // Modes: "managed", "custom". The default is "managed".
      templates: { mode: "managed" },
    },
  },
});