Skip to content

Commit 5fec00a

Browse files
fix: web-deploy validation to check for frontend flag
1 parent cfc4f00 commit 5fec00a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/mighty-rats-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,13 @@ export function processAndValidateFlags(
448448
const hasWebFrontendFlag = (config.frontend ?? []).some((f) =>
449449
WEB_FRAMEWORKS.includes(f),
450450
);
451-
if (config.webDeploy && config.webDeploy !== "none" && !hasWebFrontendFlag) {
451+
452+
if (
453+
config.webDeploy &&
454+
config.webDeploy !== "none" &&
455+
!hasWebFrontendFlag &&
456+
providedFlags.has("frontend")
457+
) {
452458
consola.fatal(
453459
"'--web-deploy' requires a web frontend. Please select a web frontend or set '--web-deploy none'.",
454460
);

0 commit comments

Comments
 (0)