feat: load project templates from custom E2B sandboxes instead of from Cloudflare

This commit is contained in:
James Murdza
2024-11-02 13:27:11 -06:00
parent 5633727bdb
commit 5a63ab7265
6 changed files with 37 additions and 38 deletions

View File

@ -44,8 +44,8 @@ export default function RunButtonModal({
} else if (!isRunning && terminals.length < 4) {
const command =
sandboxData.type === "streamlit"
? "pip install -r requirements.txt && streamlit run main.py --server.runOnSave true"
: "yarn install && yarn dev"
? "./venv/bin/streamlit run main.py --server.runOnSave true"
: "npm run dev"
try {
// Create a new terminal with the appropriate command