feat: add PHP template

This commit is contained in:
omar rashed
2024-11-24 22:28:32 -05:00
committed by James Murdza
parent a293d98a21
commit 4db378b5f1
4 changed files with 28 additions and 5 deletions

View File

@ -75,7 +75,13 @@ export class Sandbox {
} else {
console.log("Creating container", this.sandboxId)
// Create a new container with a specified template and timeout
const templateTypes = ["vanillajs", "reactjs", "nextjs", "streamlit"]
const templateTypes = [
"vanillajs",
"reactjs",
"nextjs",
"streamlit",
"php",
]
const template = templateTypes.includes(this.type)
? `gitwit-${this.type}`
: `base`