Skip to content

Commit 8b92b9e

Browse files
authored
fix: add default build limits (#72)
1 parent 4a681b9 commit 8b92b9e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

deploy/create/mod.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const createCommand = new Command<GlobalContext>()
140140
);
141141
}
142142
},
143+
default: AVAILABLE_BUILD_TIMEOUTS[0],
143144
},
144145
)
145146
.option(
@@ -159,6 +160,7 @@ export const createCommand = new Command<GlobalContext>()
159160
);
160161
}
161162
},
163+
default: AVAILABLE_BUILD_MEMORY_LIMITS[0],
162164
},
163165
)
164166
.option(
@@ -305,11 +307,6 @@ export const createCommand = new Command<GlobalContext>()
305307
}
306308
}
307309

308-
const buildTimeout = required(options.buildTimeout, "build-timeout");
309-
const buildMemoryLimit = required(
310-
options.buildMemoryLimit,
311-
"build-memory-limit",
312-
);
313310
const region = required(options.region, "region");
314311

315312
console.log("Using the following build configuration:");
@@ -321,8 +318,8 @@ export const createCommand = new Command<GlobalContext>()
321318
repo,
322319
buildDirectory,
323320
buildConfig: buildConfig satisfies BuildConfig,
324-
buildTimeout,
325-
buildMemoryLimit,
321+
buildTimeout: options.buildTimeout,
322+
buildMemoryLimit: options.buildMemoryLimit,
326323
region,
327324
};
328325
} else {

0 commit comments

Comments
 (0)