We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93f20a commit 92ae852Copy full SHA for 92ae852
lib/e2b.ts
@@ -52,7 +52,12 @@ export async function createSandbox({ files }: { files: z.infer<typeof benchifyF
52
}
53
54
// Run the Vite app
55
- await sandbox.commands.run('cd /home/user/app && npx vite');
+ sandbox.commands.run('npx vite --host', {
56
+ cwd: '/home/user/app',
57
+ timeoutMs: 0,
58
+ }).catch((error) => {
59
+ console.error("Error running Vite:", error);
60
+ });
61
62
return {
63
sbxId: sandbox.sandboxId,
0 commit comments