Commit 893e5f9
fix(deploy): make --create-site flag always work without interaction (#7570)
* fix(deploy): make --create-site flag always work without interaction
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix(deploy): fix "Create & configure" option in interactive mode
The interactive deploy prompt was incorrectly checking for a '+' prefix
that didn't exist in the choice text, causing "Create & configure a new
project" to always fall through to the link flow instead of creating
a new site. Fixed by using proper constants and exact equality check,
consistent with the init command pattern.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix(deploy): remove non-null assertion and improve error handling
Replace non-null assertion operator with proper error handling to fix
ESLint violation. Also apply Prettier formatting fixes.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* refactor(deploy): use inquirer choice objects for robust option handling
Replace brittle string matching with inquirer's choice objects pattern,
separating display text from programmatic values. This prevents future
breakage when display text changes and follows established codebase patterns.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix(deploy): add proper error handling for --create-site name conflicts
Handle 422 status code when site name is already taken, providing clear
error messages instead of generic "JSONHTTPError: Unprocessable Entity".
This improves the user experience for non-interactive site creation.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent cc34a97 commit 893e5f9
1 file changed
+38
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
931 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
932 | 942 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
938 | 957 | | |
939 | 958 | | |
940 | 959 | | |
| |||
954 | 973 | | |
955 | 974 | | |
956 | 975 | | |
957 | | - | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
958 | 986 | | |
959 | 987 | | |
960 | 988 | | |
961 | | - | |
| 989 | + | |
962 | 990 | | |
963 | 991 | | |
964 | 992 | | |
| |||
0 commit comments