Skip to content

Commit a14aa23

Browse files
Use micro for template building
1 parent 068504d commit a14aa23

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codesandbox/sdk",
3-
"version": "1.0.0-rc.4",
3+
"version": "1.0.0-rc.5",
44
"description": "The CodeSandbox SDK",
55
"author": "CodeSandbox",
66
"license": "MIT",

src/bin/commands/build.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,14 @@ export const buildCommand: yargs.CommandModule<
131131
fromSandbox: argv.fromSandbox,
132132
collectionPath: argv.path,
133133
name: argv.name,
134-
vmTier: argv.vmTier ? VMTier.fromName(argv.vmTier) : undefined,
135134
});
136135

137136
spinner.start(
138137
updateSpinnerMessage(index, "Starting sandbox...", sandboxId)
139138
);
140139

141140
const startResponse = await startVm(apiClient, sandboxId, {
142-
vmTier: argv.vmTier ? VMTier.fromName(argv.vmTier) : undefined,
141+
vmTier: VMTier.fromName("Micro"),
143142
});
144143
let sandbox = new Sandbox(sandboxId, apiClient, startResponse);
145144
let session = await sandbox.connect();
@@ -167,7 +166,11 @@ export const buildCommand: yargs.CommandModule<
167166
spinner.start(
168167
updateSpinnerMessage(index, "Restarting sandbox...", sandboxId)
169168
);
170-
sandbox = await sdk.sandboxes.restart(sandbox.id);
169+
sandbox = await sdk.sandboxes.restart(sandbox.id, {
170+
vmTier: argv.vmTier
171+
? VMTier.fromName(argv.vmTier)
172+
: VMTier.fromName("Micro"),
173+
});
171174
session = await sandbox.connect();
172175

173176
const disposableStore = new DisposableStore();

0 commit comments

Comments
 (0)