diff --git a/backend/server/src/SandboxManager.ts b/backend/server/src/SandboxManager.ts index 7503b7d..960d3c3 100644 --- a/backend/server/src/SandboxManager.ts +++ b/backend/server/src/SandboxManager.ts @@ -134,11 +134,7 @@ export class SandboxManager { const handleDeploy: SocketHandler = async (_: any) => { if (!this.gitClient) throw Error("No git client") if (!this.fileManager) throw Error("No file manager") - const fixedFilePaths = this.fileManager?.fileData.map((file) => ({ - ...file, - id: file.id.split("/").slice(2).join("/"), - })) - await this.gitClient.pushFiles(fixedFilePaths, this.sandboxId) + await this.gitClient.pushFiles(this.fileManager?.fileData, this.sandboxId) return { success: true } }