Commit Graph
35 Commits
Author SHA1 Message Date
d27060ca63 docs(branching): remove stale auto-pause claims for idle branches (#52662)
## Problem

The branching docs say idle branches auto-pause and wake on first
request. They no longer do, and it's confusing users.

## Solution

Removed the auto-pause statements from the Branching and Troubleshooting
pages, and pointed users to **Restore branch** for branches they paused
themselves.

## Review instructions

1. Open the preview pages:
[Troubleshooting](https://docs-git-docs-branching-remove-auto-pause-supabase.vercel.app/docs/guides/deployment/branching/troubleshooting)
and
[Branching](https://docs-git-docs-branching-remove-auto-pause-supabase.vercel.app/docs/guides/deployment/branching).
Neither mentions auto-pause.
2. Confirm **Restore branch** is the right action for a paused branch.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] I used the `/write-the-docs` or `/edit-the-docs` skill, which
applies the docs [style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Meg Corren <supabase@Megs-MacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 21:48:53 +00:00
Colum Ferry 95cf9a78a7 docs(cli): show config examples in TOML and JSONC (#53449)
## Problem

The CLI reads `supabase/config.jsonc` (and `config.json`) since v3.1.0,
but every docs page still shows `config.toml` only. There's also no page
explaining the formats, how to switch, the `$schema` / `#:schema`
declaration, or editor setup, and no reference pages for the new
`supabase config convert` and `supabase config validate` commands.

Linear: CLI-2871

## Solution

- **Dual-format examples from one source.** A new directive
(`features/directives/ConfigFormats.ts`) picks up any ```` ```toml ````
fence with `name=supabase/config.toml` and renders it as
`supabase/config.toml` / `supabase/config.jsonc` tabs. The JSONC is
generated at build time with `convertCliConfigTomlToJsonc` from
`@supabase/config`, the same converter `supabase config convert` uses,
so authors only write TOML and the JSONC matches what the CLI would
produce (comments included). Inside `<$CodeTabs>` the JSONC is added as
an extra tab.
- **The format choice sticks.** `ConfigCodeTabs` keeps the selected
format in `localStorage`, so choosing JSONC switches every config
example on the page and on later pages.
- **Config reference.** The `usage` examples on
`/guides/local-development/cli/config` use the same tabs (they were
highlighted as Python before), and the intro mentions `config.jsonc`.
The `remotes.<branch_name>` example now uses `[remotes.staging]`, since
`<branch_name>` isn't a valid TOML key.
- **New guide, "Config file formats"**
(`/guides/local-development/cli/config-formats`): which file wins,
minimum CLI version, `convert` and `validate`, schema declaration and
versioning, and editor setup (VS Code trusted domains, Even Better TOML,
Tombi, SchemaStore).
- **CLI reference.** Adds `supabase-config-convert` and
`supabase-config-validate` to the CLI reference nav.
`cli_v1_commands.yaml` is the generated v3.2.0 reference, identical to
the release bot's update in #53463, so the two PRs don't conflict.
- **Content.** About 60 existing config examples across the guides,
including the Branching configuration page, are tagged
`name=supabase/config.toml`. Branching reads `config.json` and
`config.jsonc` as well, and the Branching configuration page now says
so. Non-Supabase TOML (`pyproject.toml`, `bunfig.toml`) and the v2-era
`[inbucket]` before/after snippet stay TOML-only.
- **Format-neutral prose.** Sentences that described the config as
`config.toml` now say "your config file", naming `supabase/config.toml`
and `supabase/config.jsonc` once per page. TOML section syntax in prose
(`max_frequency` under `[auth.email]`) is written as key paths
(`auth.email.max_frequency`), which read the same in both formats.
Headings that named `config.toml` keep their old anchors. Sentences
about what `supabase init` creates still say `config.toml`.
- **Markdown export for agents.**
`internals/generate-guides-markdown.ts` runs the same transform, so the
`.md` pages served to AI agents include the JSONC example after each
TOML one.
- A test converts every tagged example under `content/`, so a broken
TOML example fails tests instead of the build.

New dependencies for `apps/docs`: `@supabase/config` (^1.8.0) and
`effect` (the same `effect` version Studio pins).

`config convert` and `config validate` ship in CLI v3.2.0, which is now
stable.

## Review instructions

1. Open `/docs/guides/local-development/seeding-your-database` on the
preview. Switch an example to `supabase/config.jsonc` and check the
other examples on the page switch too.
2. Open `/docs/guides/local-development/cli/config` and check the usage
examples open on JSONC.
3. Read `/docs/guides/local-development/cli/config-formats`.
4. Open `/docs/reference/cli/supabase-config-convert` and
`/docs/reference/cli/supabase-config-validate`.

## Self-review

Ran the `review-the-docs` local self-review (content, pipeline, and
component checks) over the 54 changed pages.

- No blockers. Fixed the nits it found: leftover TOML section syntax in
prose (diff engines, declarative schemas, Branching, the common settings
table on Local and hosted projects), a few long or ungrammatical
sentences, and the conversion follow-up steps on Config file formats,
now a list.
- Links, custom anchors, nav wiring, and frontmatter check out.
- The `.md` export on the preview shows each TOML example followed by
its JSONC version.
- `test-the-docs` deferred: the changed fences are config snippets, and
`ConfigFormats.test.ts` already converts every tagged example. No
procedural steps changed apart from the `config convert` and `config
validate` commands on the new page.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-20 14:34:59 +00:00
Kody JacksonandClaude Sonnet 5.5 ceae23e199 docs: add cross-links in guides (AI, API, Auth, Database, Functions, deployment) (#53560)
## What

Adds internal cross-links to docs guides

## Testing

- Prettier passes on the changed lines.
- Docs build passes (`pnpm build --filter=docs`).
- Docs link e2e run locally against the production build for every
changed page across this PR

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:57:10 -06:00
Wen Bo Xie 626f0d412a docs(branching): explain what a new branch inherits and what each push runs (#51753)
## Problem

Users ask whether the GitHub integration applies migrations and syncs
`config.toml` to a branch on its own or whether they need a GitHub
Action for it but there's no docs clarifying that.

The branching guides also does not have when a new branch inherits from
its base project, where a dashboard branch gets its schema, what the
`configure`, `migrate`, and `deploy` steps read from the repository, and
what the workflow step statuses mean.

## Solution

Added the missing facts to the four pages that already cover each topic,
with no new pages and no moved headings.

- Overview: a "What a new branch starts with" section listing the copied
settings, the placeholder Auth secrets, the webhook default, and where
each branch kind gets its schema.
- GitHub integration: a "What runs on each push" subsection that answers
the FDBKIN-11978 question directly, the `config.toml` sections the
configure step applies and the protected-branch rule, two migrate edge
cases and the `[db.migrations]` switch, and a new "Edge Functions"
subsection on copy-from-base and checksum skips.
- Dashboard: "Where a dashboard branch gets its schema".
- Troubleshooting: the step status table and two new causes under
"Config.toml not applying".

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-14 15:56:15 +00:00
59c8ea3ddc docs(BRA-282): clarify that branches are created as clones of the base project (#49594)
## What kind of change does this PR introduce?

Docs update.


## What is the new behavior?

The branching docs now state consistently that every branch, preview or
persistent, is created as a clone of the base project, starting with
that project's schema, Edge Functions, and configuration. Data and
storage objects are not cloned by default.

## Additional context

This documents new branch-creation behavior. Two automated reviewers
flagged the clone wording and argued for a migration-replay description;
that reflects the previous implementation, so their findings don't apply
here and the clone framing stands.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com>
2026-08-28 17:35:24 +08:00
Han Qiao 433175e79a Clarify behavior of preview branches in documentation (#48744)
Update the description of preview branches to clarify that they are
automatically deleted when a PR is merged or closed.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Clarified that preview branches are temporary and automatically
deleted when a pull request is merged or closed.
- Removed outdated guidance stating that preview branches pause after
inactivity.
- Clarified that persistent branches remain available long-term and are
not automatically paused or deleted due to inactivity or pull request
closure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-11 22:44:31 +08:00
107750b6d0 Highlight github integration on free plan (#44101)
Highlight that the github integration is available on the free plan in
key pages:
 

Old: https://supabase.com/docs/guides/deployment
New:
https://docs-git-chore-highlight-gh-integration-supabase.vercel.app/docs/guides/deployment


Old:
https://supabase.com/docs/guides/deployment/branching/github-integration
New:
https://docs-git-chore-highlight-gh-integration-supabase.vercel.app/docs/guides/deployment/branching/github-integration

Old: https://supabase.com/docs/guides/deployment/going-into-prod
New:
https://docs-git-chore-highlight-gh-integration-supabase.vercel.app/docs/guides/deployment/going-into-prod

These need to be merged first: 
https://github.com/supabase/supabase/pull/44008
https://github.com/supabase/platform/pull/30774

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated deployment guide with clearer GitHub-based workflow for
automatic production deployments
* Added guidance on Pro-plan branching feature enabling isolated preview
environments per pull request
  * Enhanced production deployment checklist with configuration steps
* Expanded deployment FAQ addressing requirements, plan details, and
branching benefits

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/44101?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-05-22 13:44:58 -02:30
TheOtherBrian1andChris Chinchilla a574ef50ef docs: Update branching.mdx | fixed typo (#44112)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

docs update

## What is the current behavior?

Uses the phrase: "For e.g." instead of "For instance,"

## What is the new behavior?

Substituted out the abbreviation "e.g." for the word "instance"

---------

Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
2026-03-26 09:44:16 +00:00
Maksym Ionutsa 11972cc67e docs: clarify preview vs persistent branches (#41835)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Clarifies that preview branches are ephemeral and auto‑paused/deleted
after inactivity or PR close/merge.
- States that persistent branches are recommended for staging/QA/dev and
do not auto‑pause/delete.

Users often expect branches to behave like Git branches and be
persistent by default. They create staging/dev environments without
switching to persistent and are surprised when the preview branch is
deleted.

Relatively common cause for support tickets.  

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Enhanced branching guide with clarified behavior for Preview Branches
(ephemeral with automatic cleanup) and Persistent Branches (long-lived
without automatic cleanup).

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-29 16:30:43 +01:00
a50ccb80e3 docs(branching): add branching deploy steps overview (#39232)
* docs(branching): add branching deploy steps overview

* Update apps/docs/content/guides/deployment/branching.mdx

Co-authored-by: Han Qiao <sweatybridge@gmail.com>

* Apply suggestion from @github-actions[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Apply suggestion from @github-actions[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: split up overview and troubleshooting

* chore: rearrange heading for readability

* chore: rephrase promoting to production

* chore: clarify git push runs the same workflow

* chore: more minor edits

* chore: more clarity

---------

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Qiao Han <qiao@supabase.io>
2025-10-09 06:13:33 +00:00
Saxon FletcherandChris Chinchilla d0972be7d5 Update branch framing (#37673)
* update branch framing

* shorten preview name

* Update apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update apps/docs/content/guides/deployment/branching/branching-2.mdx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update apps/docs/content/guides/deployment/branching/branching-2.mdx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update apps/docs/content/guides/deployment/branching/branching-2.mdx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update apps/docs/content/guides/deployment/branching.mdx

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* update name and add redirect

---------

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
2025-08-07 08:53:29 +10:00
85bd0d4f9b feat(docs): new branching docs (#36890)
* feat(docs): new branching docs

Reorganize branching docs and add Gitless branching page

* style: fix lint and formatting issues

* chore: document email notification for failures

* docs(branching): fix review comments

* branch merge updates

---------

Co-authored-by: Qiao Han <qiao@supabase.io>
Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
2025-07-16 09:45:19 -04:00
Charis e2fecc0f5d chore(docs linter): bump version (#36715)
* chore(docs linter): bump version

* style: format
2025-07-03 14:46:29 +00:00
Han Qiao 94036ceaa0 chore: adjust branching price comms (#36685) 2025-06-26 05:09:53 +00:00
Andrew Valleteau 5de791afd0 chore(docs): add branching secrets managements docs (#36306)
* chore(docs): add branching secrets managements docs

* chore: lint
2025-06-11 00:11:48 +08:00
Kevin Grüneberg e1bd23d66f fix: do not translate USD prices (#35466)
When translation tools go over prices, they wrongfully convert USD into other currencies without changing the price. $25 becomes Rp25 (Rupiah).

By using `translate='no'` we avoid the translation of pricing info. There are some tooltips left that are not covered yet, but this should be the majority already.

Kept the docs Pricing component as simple as possible, just wrapping in a span to avoid translation, not modifying any formatting.
2025-05-06 12:03:35 +08:00
PeterandTyler 6a812a04b6 Update docs for new connection strings and disk/compute pages in the dashboard (#35128)
* Update all docs that make references to the database settings to find the connection strings.

Update all docs that references the database settings for the compute and disk page

* run prettier

* run pnpm format instead of prettier directly.

* first run through, fix grammar and reword awkward sentences

* Fix typos and remove unnecessary whitespace

* Apply suggestions from code review

Co-authored-by: Tyler <dshukertjr@gmail.com>

---------

Co-authored-by: Tyler <dshukertjr@gmail.com>
2025-04-21 08:59:43 -05:00
Han Qiao 9fb5c4ad14 chore: clarify how previews are based on persistent branch (#35137) 2025-04-21 20:59:51 +08:00
Han Qiao a38d76b571 chore: document network restrictions for branching cluster (#34863)
* chore: document network restrictions for branching cluster

* chore: custom styling
2025-04-10 09:29:29 +08:00
Han QiaoandCharis 462e0fce58 chore: add custom ORM guide to branching docs (#34454)
* chore: add custom ORM guide to branching docs

* chore: run prettier

* chore: use valid bash script

* Update apps/docs/content/guides/deployment/branching.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-03-28 01:25:05 +00:00
Charis 311232b3e1 feat(docs): ts hover annotations on code blocks (#34327) 2025-03-21 15:48:32 -04:00
Charis a820c56ed0 chore: docs linting (#33574) 2025-02-21 14:13:00 -05:00
Han Qiao 6ffe7d9062 docs: clarify branch merge behaviour (#33704)
* docs: clarify branch merge behaviour

* Update branching.mdx
2025-02-20 01:14:07 +08:00
Charis 2d55512553 chore: activate spelling and admonitions lints for docs (#33292) 2025-02-04 13:18:31 -05:00
GauntletRunner2025 4b87612507 Update branching.mdx (#32949) 2025-01-22 19:29:30 +00:00
Han Qiao 5e12593262 Update branching docs to mention vercel connection (#32939) 2025-01-20 23:45:35 +08:00
Han Qiao 30a86fe0e8 docs: clarify the implications of branches auto pausing (#32854)
* Remote notice about pausing branches after inactivity

* Update branching.mdx

* Update branching.mdx

* Update branching.mdx

* Update branching.mdx
2025-01-17 13:37:56 +08:00
Andrew ValleteauandCharis 541cc205a9 chore(docs): update branching docs (#30977)
* chore: update docs branching

* chore: update docs

* chore: update titles casing

* chore: update casing title

* chore: casing

* chore: nitpicks

* chore: more reviedog comments

* Update apps/docs/content/guides/deployment/branching.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* chore: merge images

* chore: reword and simplify docs

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-01-08 03:12:18 +00:00
Kamil Ogórek 06c3a3ec2b Enable branching for vercel marketplace (#32396)
* feat: Add support for branching for Vercel Marketplace resources

* docs: Remove Vercel Marketplace branching support note
2025-01-06 10:15:02 +01:00
837c1bc299 chore(docs): add branching remotes section docs (#30886)
* chore(docs): add branching remotes section docs

* fix: prettier

* Update apps/docs/content/guides/deployment/branching.mdx

Co-authored-by: Han Qiao <sweatybridge@gmail.com>

* Apply suggestions from code review

* chore: close block quote

---------

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Qiao Han <qiao@supabase.io>
2025-01-02 17:36:32 +08:00
Pamela Chia 1668c1addd Chore/remove waitlist and fix image (#31130) 2024-12-17 10:13:47 +08:00
Kamil Ogórek 058f9bbaa6 docs: Add note regarding Vercel braching synchronization (#30969) 2024-12-06 16:04:30 +01:00
Han Qiao 822cf92322 chore: update docs links to database migrations page (#30922) 2024-12-06 11:40:49 +08:00
Kamil Ogórek c08a852661 fix: Disable vercel integration for vercel managed projects (#30801) 2024-12-04 12:48:49 +01:00
Charis 41d924b074 feat: new docs ia (#29364)
New Docs IA, mainly splitting up the miscellaneous bucket that is Platform into multiple sections
2024-10-09 12:38:34 -04:00