Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add dotenv for local dev

Tomas Valenta34b81b22a245
diff --git a/api-service/playground/src/app.ts b/api-service/playground/src/app.ts
index 3cd1d5ae9..d3b209a98 100644
--- a/api-service/playground/src/app.ts
+++ b/api-service/playground/src/app.ts
@@ -7,12 +7,9 @@ import express, {
} from 'express'
import { ValidateError } from 'tsoa'
import morgan from 'morgan'
-import * as dotenv from 'dotenv'
import { RegisterRoutes } from './generated/routes'
-dotenv.config()
-
export const app = express()
app.use(
diff --git a/api-service/playground/src/deployments/deployment.ts b/api-service/playground/src/deployments/deployment.ts
index bb7876447..8c2858c4e 100644
--- a/api-service/playground/src/deployments/deployment.ts
+++ b/api-service/playground/src/deployments/deployment.ts
@@ -11,9 +11,14 @@ import {
} from '@aws-sdk/client-lambda'
// import { APIGatewayClient } from '@aws-sdk/client-api-gateway'
import { EnvVars, Session } from '@devbookhq/sdk'
+import * as dotenv from 'dotenv'
import { packageFunction } from './packaging'
+dotenv.config({
+ path: '../../.env',
+})
+
const credentials = {
accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,