Skip to content

⚡ optimize: use asynchronous I/O for .env file operations#102

Merged
scobru merged 1 commit into
mainfrom
perf-async-env-io-7885975241879969079
Apr 27, 2026
Merged

⚡ optimize: use asynchronous I/O for .env file operations#102
scobru merged 1 commit into
mainfrom
perf-async-env-io-7885975241879969079

Conversation

@scobru
Copy link
Copy Markdown
Owner

@scobru scobru commented Apr 27, 2026

Replaced synchronous fs methods with fs.promises in readEnvFile and updateEnvFile within runtime-config.ts. Updated call sites in routes/index.ts to await these asynchronous operations. This prevents blocking the event loop during runtime configuration updates.

Replaced synchronous `fs` methods with `fs.promises` in `readEnvFile` and `updateEnvFile` within `runtime-config.ts`.
Updated call sites in `routes/index.ts` to `await` these asynchronous operations.
This prevents blocking the event loop during runtime configuration updates.

Co-authored-by: scobru <1079164+scobru@users.noreply.github.com>
@scobru scobru merged commit 1e706e4 into main Apr 27, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant