fix: use correct path format for deployment
This commit is contained in:
parent
f83dcfcf8f
commit
21026a3c53
@ -134,11 +134,7 @@ export class SandboxManager {
|
|||||||
const handleDeploy: SocketHandler = async (_: any) => {
|
const handleDeploy: SocketHandler = async (_: any) => {
|
||||||
if (!this.gitClient) throw Error("No git client")
|
if (!this.gitClient) throw Error("No git client")
|
||||||
if (!this.fileManager) throw Error("No file manager")
|
if (!this.fileManager) throw Error("No file manager")
|
||||||
const fixedFilePaths = this.fileManager?.fileData.map((file) => ({
|
await this.gitClient.pushFiles(this.fileManager?.fileData, this.sandboxId)
|
||||||
...file,
|
|
||||||
id: file.id.split("/").slice(2).join("/"),
|
|
||||||
}))
|
|
||||||
await this.gitClient.pushFiles(fixedFilePaths, this.sandboxId)
|
|
||||||
return { success: true }
|
return { success: true }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user