Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

commit

Vasek Mlejnskya5bb0b2b2698
diff --git a/api-service/playground/src/deployments/packaging.ts b/api-service/playground/src/deployments/packaging.ts
index a2504eb07..8527f207c 100644
--- a/api-service/playground/src/deployments/packaging.ts
+++ b/api-service/playground/src/deployments/packaging.ts
@@ -41,21 +41,21 @@ function addAWSLambdaHandlers(code: string) {
if (isECMA) {
code = 'import serverless from "serverless-http";\n' + code
- code = code + "\nexport const handler = serverless(app);"
+ code = code + '\nexport const handler = serverless(app);'
} else {
code = "const serverless = require('serverless-http');\n" + code
- code = code + "\nexports.handler = serverless(app);"
+ code = code + '\nexports.handler = serverless(app);'
}
- return code.replace("app.listen(", "; ({})?.listen?.(")
+ return code.replace('app.listen(', '; ({})?.listen?.(')
}
/**
- *
+ *
* TODO: Implement binary file reading in devbookd so we don't have to send data via base64 (cca 25% overhead) and process stdout.
* TODO: Pipe the output from esbuild -> zip -> base64
- *
+ *
*/
export async function packageFunction(session: Session) {
if (!session.filesystem || !session.process) {