Skip to content

Commit 533eac8

Browse files
author
benchify
committed
run the app in the background
1 parent c7903ae commit 533eac8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/e2b.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export async function createSandbox({ files }: { files: z.infer<typeof benchifyF
5252
}
5353

5454
// Run the Vite app
55-
await sandbox.commands.run('cd /home/user/app && npx vite');
55+
sandbox.commands.run('npx vite --host', {
56+
cwd: '/home/user/app',
57+
timeoutMs: 0,
58+
})
5659

5760
return {
5861
sbxId: sandbox.sandboxId,

0 commit comments

Comments
 (0)