Skip to content

Commit 119c043

Browse files
refactor(node-sql): remove unused env from context
Handler doesn't use context.env - remove to avoid exposing raw process.env Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a8ba7f6 commit 119c043

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

templates/node-sql/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ app.post('/', async (req: any, res: any, next: any) => {
5555
pool: currentPool,
5656
withUserContext: createWithUserContext(currentPool, databaseId),
5757
log,
58-
env: process.env as Record<string, string | undefined>,
5958
};
6059

6160
const params = req.body || {};

templates/node-sql/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ export type FunctionContext = {
2020
pool: Pool;
2121
withUserContext: <T>(actorId: string | undefined, fn: (client: PoolClient) => Promise<T>) => Promise<T>;
2222
log: Logger;
23-
env: Record<string, string | undefined>;
2423
};

0 commit comments

Comments
 (0)