We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc4f00 commit 5fec00aCopy full SHA for 5fec00a
.changeset/mighty-rats-lie.md
@@ -0,0 +1,5 @@
1
+---
2
+"create-better-t-stack": patch
3
4
+
5
+fix: web-deploy validation to check for frontend flag
apps/cli/src/validation.ts
@@ -448,7 +448,13 @@ export function processAndValidateFlags(
448
const hasWebFrontendFlag = (config.frontend ?? []).some((f) =>
449
WEB_FRAMEWORKS.includes(f),
450
);
451
- if (config.webDeploy && config.webDeploy !== "none" && !hasWebFrontendFlag) {
452
+ if (
453
+ config.webDeploy &&
454
+ config.webDeploy !== "none" &&
455
+ !hasWebFrontendFlag &&
456
+ providedFlags.has("frontend")
457
+ ) {
458
consola.fatal(
459
"'--web-deploy' requires a web frontend. Please select a web frontend or set '--web-deploy none'.",
460
0 commit comments