All blocks

Collaboration

Notifications

In-app notifications sent through a security definer notify(): one event per change, per-recipient read, dismissed and resolved state, per-channel deliveries, subject subscriptions, preferences with a tenant override, and realtime on a private topic.

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

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