You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4a1ebb1
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(core,cli,webapp): drop the build env vars stored ack
An older server without build env var support fails the build on the
server side with a clear error, so the client-side ack guard, the
courtesy cancel, and the client-side limit pre-checks are unnecessary.
`Your build uses too many build environment variables: ${buildEnvVarCount} (max ${BUILD_ENV_VARS_MAX_KEYS}).`
1373
-
);
1374
-
}
1375
-
1376
-
if(buildEnvVarBytes>BUILD_ENV_VARS_MAX_BYTES){
1377
-
thrownewError(
1378
-
`Your build environment variables are too large: ${buildEnvVarBytes} bytes (max ${BUILD_ENV_VARS_MAX_BYTES}). Reduce the size of the env var values used by your build.`
1379
-
);
1380
-
}
1381
-
1382
1363
if(options.dryRun){
1383
1364
logger.info(`Dry run complete. View the built bundle at ${destination.path}`);
1384
1365
return;
@@ -1567,36 +1548,6 @@ async function handleNativeBuildServerDeploy({
1567
1548
return;
1568
1549
}
1569
1550
1570
-
// No ack for sent build env vars means an older server stripped them; fail fast.
1571
-
// After the outcome=existing return: a reused deployment builds nothing.
1572
-
if(
1573
-
options.localBundle&&
1574
-
bundleBuildEnvVars&&
1575
-
Object.keys(bundleBuildEnvVars).length>0&&
1576
-
!deployment.buildEnvVarsStored
1577
-
){
1578
-
// Best-effort cancel so the deployment does not linger until the queue timeout
1579
-
const[cancelError]=awaittryCatch(
1580
-
apiClient.cancelDeployment(deployment.id,"Build environment variables were not stored")
1581
-
);
1582
-
if(cancelError){
1583
-
logger.debug("Failed to cancel deployment after missing build env vars ack",{
1584
-
deploymentId: deployment.id,
1585
-
error: cancelError,
1586
-
});
1587
-
}
1588
-
1589
-
$deploymentSpinner.stop("Failed to initialize deployment");
1590
-
log.error(
1591
-
chalk.bold(
1592
-
chalkError(
1593
-
"This server does not support --local-bundle deploys with build environment variables yet. Deploy without --local-bundle instead."
0 commit comments