Commit 0f5df79
authored
chore(infra): simplify production database operations (#37)
## Summary
- Use the production Supabase runtime roles for both local and deployed
Workers.
- Remove orphaned release, local database, compatibility, and dead API
surfaces.
- Align Vault and Worker-role migrations with managed Supabase behavior.
- Restore the direct Cloudflare deploy plus explicit expand/contract
migration path.
## Decisions
- Runtime Workers keep distinct least-privilege database roles.
- Administrative migration credentials remain isolated in
`.env.migrate`.
- Production contractions remain a separate guarded operation after the
matching release is live.
- Vercel Git deployment is re-enabled for the web app.
## Validation
- `pnpm typecheck`
- `pnpm lint`
- `pnpm build`
- `pnpm architecture:check`
- `pnpm deadcode`
- `pnpm dev:services --dry-run`
- production pre-deploy migrations and target identity verification
## Rollout
1. Merge after `static-checks`.
2. Verify the production web revision.
3. Deploy the four Cloudflare services.
4. Verify service health.
5. Apply the guarded post-deploy contraction phase.
6. Verify production UI, console, network, and Worker logs.1 parent ac39dd9 commit 0f5df79
37 files changed
Lines changed: 499 additions & 3735 deletions
File tree
- .github/workflows
- apps
- agent-worker/src
- gateway-worker
- src
- web
- src
- app/(app)/billing
- components/shell
- infra
- containers/dev
- supabase/migrations/post
- packages
- db
- src
- env
- src
- types/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
19 | 9 | | |
20 | 10 | | |
21 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
136 | 132 | | |
137 | 133 | | |
138 | 134 | | |
| |||
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
0 commit comments