Commit 0710a97
fix(deploy): reject hostnames with trailing hyphens
Tighten the hostname regex to disallow trailing hyphens, which are
invalid per DNS rules and would fail at the API with a confusing error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 407de2a commit 0710a97
File tree
2 files changed
+20
-1
lines changed- packages/@sanity/cli/src
- actions/deploy
- commands/__tests__
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1525 | 1525 | | |
1526 | 1526 | | |
1527 | 1527 | | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
1528 | 1547 | | |
1529 | 1548 | | |
1530 | 1549 | | |
| |||
0 commit comments