You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d6c7dca
Browse filesBrowse the repository at this point in the historyBrowse files
docs(ops): say what the function date check cannot see
A function deployed from an out-of-date checkout gets a fresh deploy
date, so backend:status reports it as current. Say so in the report
and the docs, and deploy functions only from an up-to-date main.
Drop the untested claim about SUPABASE_DB_PASSWORD, and note that a CI
step would need a production credential that AGENTS.md keeps out of
jobs.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/operations.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Do not enable the staging repository variable before every prerequisite is prese
65
65
66
66
## Backend drift check
67
67
68
-
`npm run backend:status` shows what the current commit has that a Supabase project lacks. It inspects the linked project; `npm run backend:status -- --project-ref <ref>` inspects another one. It runs `supabase migration list` and `supabase functions list` and changes no schema, data, functions, or secrets. To connect to the database, the CLI creates its usual short-lived login role unless `SUPABASE_DB_PASSWORD` is set.
68
+
`npm run backend:status` shows what the current commit has that a Supabase project lacks. It inspects the linked project; `npm run backend:status -- --project-ref <ref>` inspects another one. It runs `supabase migration list` and `supabase functions list` and changes no schema, data, functions, or secrets. To connect to the database, the CLI creates its usual short-lived login role.
69
69
70
70
The comparison uses the committed tree at `HEAD`, so commit or stash local edits first. It reports:
71
71
@@ -74,9 +74,9 @@ The comparison uses the committed tree at `HEAD`, so commit or stash local edits
74
74
- functions whose deployed `verify_jwt` differs from [`supabase/config.toml`](../supabase/config.toml);
75
75
- deployed functions that the commit does not have.
76
76
77
-
Function change dates come from first-parent git history, which dates a merged change by its merge. A function deployed from a branch before its merge therefore shows as changed until it is redeployed from `main`. A shallow clone skips the function date check.
77
+
Function change dates come from first-parent git history, which dates a merged change by its merge. A function deployed from a branch before its merge therefore shows as changed until it is redeployed from `main`. The reverse is not caught: a function deployed from an out-of-date checkout gets a fresh deploy date and looks current. Deploy functions only from an up-to-date `main`. A shallow clone skips the function date check.
78
78
79
-
`--check` exits 1 when a migration on this commit is not applied, and exit code 2 means the check itself failed. A scheduled CI step could use it against production, but it would need a Supabase access token and database access in GitHub Actions. That is a production credential, so it waits for Adam's decision.
79
+
`--check` exits 1 when a migration on this commit is not applied, and exit code 2 means the check itself failed. A scheduled CI step could use it against production, but it would need a Supabase access token and database access in GitHub Actions. That is a production credential, which the hard boundaries in [`AGENTS.md`](../AGENTS.md) do not allow in jobs, so it waits for Adam's decision.
80
80
81
81
`workspace-invites` is not deployed to production, because Collaborative Workspace is hidden there. Expect it in the not-deployed list.
if(dirty)notes.push("uncommitted changes under supabase/ are not part of this comparison.");
261
-
notes.push("function change dates come from git; a function deployed from a branch before its merge shows as changed until it is redeployed from this line.");
261
+
notes.push("function change dates come from git. A function deployed from a branch before its merge shows as changed; one deployed from an out-of-date checkout looks current.");
0 commit comments