The current GitHub integration for Supabase only supports deploying functions and migrations as code, but does not fully utilize the config.toml for the rest of the project configuration. This limits the ability to have the entire Supabase project configured as code, requiring additional manual or custom CI/CD setups.
Feature Request
Add options in the GitHub integration to selectively apply configuration categories from config.toml. This would allow users to manage and apply all relevant Supabase settings directly from their repository, enabling full configuration-as-code workflows.
Desired Behavior
-
Allow toggling which configuration sections from config.toml to apply during deployment, for example:
- api (API exposure, ports, schemas, TLS)
- db (database settings, pooling, migrations, network restrictions)
- realtime (real-time settings)
- storage (file storage, bucket limits/configuration)
- auth (JWT expiry, signup rules, password policies, MFA, external providers)
- functions (edge/serverless functions deployment, pruning) WITH --PRUNE (CLI OPTION) so that functions deleted in config also get deleted in the env, since the config.toml should be the source of truth
- edge_runtime (runtime, debugging, versioning)
- etc
-
When a commit or merge to the production branch happens, the integration should:
-
run supabase config push
Benefits
- Enables full configuration as code for Supabase projects
- Removes the need for custom CD pipelines to manage non-function/migration config (so i can get rid of the CD that does supabase config push)
- Provides greater flexibility and control over project deployment via GitHub integration
Additional Notes
This enhancement would align the GitHub integration closer to a true "infrastructure as code" model, improving consistency and automation for Supabase users.
The current GitHub integration for Supabase only supports deploying functions and migrations as code, but does not fully utilize the
config.tomlfor the rest of the project configuration. This limits the ability to have the entire Supabase project configured as code, requiring additional manual or custom CI/CD setups.Feature Request
Add options in the GitHub integration to selectively apply configuration categories from
config.toml. This would allow users to manage and apply all relevant Supabase settings directly from their repository, enabling full configuration-as-code workflows.Desired Behavior
Allow toggling which configuration sections from
config.tomlto apply during deployment, for example:When a commit or merge to the production branch happens, the integration should:
run supabase config push
Benefits
Additional Notes
This enhancement would align the GitHub integration closer to a true "infrastructure as code" model, improving consistency and automation for Supabase users.