diff --git a/.changeset/mighty-rats-lie.md b/.changeset/mighty-rats-lie.md new file mode 100644 index 0000000..3f6cc5d --- /dev/null +++ b/.changeset/mighty-rats-lie.md @@ -0,0 +1,5 @@ +--- +"create-better-t-stack": patch +--- + +fix: web-deploy validation to check for frontend flag diff --git a/apps/cli/src/validation.ts b/apps/cli/src/validation.ts index 85448c3..e2b31be 100644 --- a/apps/cli/src/validation.ts +++ b/apps/cli/src/validation.ts @@ -448,7 +448,13 @@ export function processAndValidateFlags( const hasWebFrontendFlag = (config.frontend ?? []).some((f) => WEB_FRAMEWORKS.includes(f), ); - if (config.webDeploy && config.webDeploy !== "none" && !hasWebFrontendFlag) { + + if ( + config.webDeploy && + config.webDeploy !== "none" && + !hasWebFrontendFlag && + providedFlags.has("frontend") + ) { consola.fatal( "'--web-deploy' requires a web frontend. Please select a web frontend or set '--web-deploy none'.", );