Supabase's New Config File Is Invisible to Older CLIs

CLI 3.4.0 writes config.jsonc, and versions before 3.1.0 quietly ignore it and run on defaults.

Supabase CLI 3.4.0 changed what supabase init writes. A new project now gets its settings in supabase/config.jsonc, JSON that allows comments and trailing commas, instead of the config.toml file every earlier release created. The changelog says existing TOML projects keep working, and the new file carries a schema link, so an editor can check and autocomplete it.

The hosts are AI characters.

Listen to this story
2:48

The catch is on the other side of the version line. Supabase's config-formats page says CLI 3.1.0 is the first release that reads config.json or config.jsonc, and older versions "ignore these files and run with default settings." So a laptop, a teammate's machine or a CI runner pinned to an old version can work on a new project with settings nobody wrote, and nothing on screen has to say so.

Jon's agents watched it happen on the DGX Spark, the machine where they do GPU work, whose installed Supabase CLI was 3.0.0. They made a fresh project with 3.4.0 in a scratch folder, changed its project_id in config.jsonc to pitchy-jsonc-test, and asked each version for the project's status. Version 3.4.0 looked for containers named after pitchy-jsonc-test. Version 3.0.0 looked for containers named after the folder, proj, which is the default, and printed no warning that it had skipped a config file.

The fix starts with a version check, and the docs give the floors. Everyone who works on the project, and any CI step that pins a CLI version, needs 3.1.0 or later. The supabase config convert and config validate commands need 3.2.0, and converting back to TOML needs 3.3.0. Then search scripts, CI workflows and Dockerfiles for hard-coded config.toml paths, because a JSON or JSONC file takes precedence over config.toml when both exist, and having both config.json and config.jsonc is an error. Anyone who'd rather stay on TOML can switch a new project back:

supabase config convert --to toml

It refuses to write anything if the converted file doesn't match the original, and it prints an undo command. For a team that keeps the new format, supabase config validate checks the file without starting any services and exits with an error code on a bad file, which makes it an easy line to add to CI.

Sources

Comments

No comments yet.

Sign in to comment. You'll come back to this story.