Commit 6edebde
committed
feat(webapp): deprecate v3 CLI deploys server-side
Detect deploys coming from v3 CLI versions (payloads that omit the
'type' field) and, when DEPRECATE_V3_CLI_DEPLOYS_ENABLED=1, reject them
with a clear error that points to the migration docs. Enforcement is
gated so we can observe v3 deploy traffic via logs before flipping.
v4 CLIs always send 'type' ('MANAGED' or 'V1') on /api/v1/deployments,
so they are unaffected. Verified against the CLI source for 4.0.0,
4.0.1, 4.0.5, 4.1.0, 4.2.0, and 4.4.4.1 parent 6e6deb4 commit 6edebde
3 files changed
Lines changed: 34 additions & 0 deletions
File tree
- .server-changes
- apps/webapp/app
- v3/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
62 | 84 | | |
63 | 85 | | |
64 | 86 | | |
| |||
0 commit comments