Skip to content

Commit c16bbcb

Browse files
committed
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.
1 parent bbeea39 commit c16bbcb

2 files changed

Lines changed: 870 additions & 204 deletions

File tree

apps/webapp/app/v3/services/initializeDeployment.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ export class InitializeDeploymentService extends BaseService {
290290
const serializedBytes = Buffer.byteLength(serialized, "utf8");
291291
if (serializedBytes > env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES) {
292292
const sizeKB = parseFloat((serializedBytes / 1024).toFixed(1));
293-
const limitKB = parseFloat((env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES / 1024).toFixed(1));
293+
const limitKB = parseFloat(
294+
(env.DEPLOYMENT_BUILD_ENV_VARS_SIZE_LIMIT_BYTES / 1024).toFixed(1)
295+
);
294296
throw new ServiceValidationError(
295297
`Build environment variables size (${sizeKB} KB) exceeds the allowed limit of ${limitKB} KB. Reach out to us if you are seeing this error consistently.`
296298
);

0 commit comments

Comments
 (0)