fix(cli): only prompt server deploy for hono+workers and restrict to wrangler/alchemy

This commit is contained in:
Aman Varshney
2025-08-21 18:30:59 +05:30
parent 934419d259
commit 32919df73c
3 changed files with 40 additions and 18 deletions

View File

@@ -283,6 +283,12 @@ export function validateFullConfig(
validateWorkersCompatibility(providedFlags, options, config);
if (config.runtime === "workers" && config.serverDeploy === "none") {
exitWithError(
"Cloudflare Workers runtime requires a server deployment. Please choose 'wrangler' or 'alchemy' for --server-deploy.",
);
}
if (config.addons && config.addons.length > 0) {
validateAddonsAgainstFrontends(config.addons, config.frontend);
config.addons = [...new Set(config.addons)];