All blocks

Content

Drive

Folders and files on the attachments module: access granted to users, teams or roles and inherited down the tree, enforced by storage policies too; moves and renames with a name-conflict policy; revisions through versions, a bin through trash, starred and recent items through share-links' user state, and folder share links.

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

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