refactor(cli): isolate local-bundle and from-bundle from the classic deploy flow
The classic deploy and native build server paths are restored to their original inline shape; local-bundle and from-bundle now live in their own functions with a duplicated tail instead of a shared extraction, so the existing flows carry zero behavioral risk from the new modes.
This commit is contained in:
@@ -290,7 +290,9 @@ export class InitializeDeploymentService extends BaseService {
|
||||
const serializedBytes = Buffer.byteLength(serialized, "utf8");
|
||||
if (serializedBytes > env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES) {
|
||||
const sizeKB = parseFloat((serializedBytes / 1024).toFixed(1));
|
||||
const limitKB = parseFloat((env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES / 1024).toFixed(1));
|
||||
const limitKB = parseFloat(
|
||||
(env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES / 1024).toFixed(1)
|
||||
);
|
||||
throw new ServiceValidationError(
|
||||
`Build environment variables size (${sizeKB} KB) exceeds the allowed limit of ${limitKB} KB. Reach out to us if you are seeing this error consistently.`
|
||||
);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user