Skip to content

feat: support passing envFilePath to NodeKit constructor#117

Merged
yainsulin merged 1 commit intomainfrom
ISSUE-116/support-dotenv-config-options
Mar 26, 2026
Merged

feat: support passing envFilePath to NodeKit constructor#117
yainsulin merged 1 commit intomainfrom
ISSUE-116/support-dotenv-config-options

Conversation

@yainsulin
Copy link
Copy Markdown
Contributor

@yainsulin yainsulin commented Mar 26, 2026

Summary

  • Adds optional envFilePath field to InitOptions for specifying a custom .env file path
  • Forwards the path to dotenv.config({path}), keeping the API minimal and migration-friendly
  • When Node.js native process.loadEnvFile(path) becomes the target, the public API stays the same

Closes #116

Test plan

  • Unit tests for envFilePath forwarding added
  • Verify existing dotenv behavior unchanged when envFilePath is not provided
  • Verify disableDotEnv still works

@yainsulin yainsulin changed the title feat: support passing DotenvConfigOptions to NodeKit constructor feat: support passing envFilePath to NodeKit constructor Mar 26, 2026
@yainsulin yainsulin force-pushed the ISSUE-116/support-dotenv-config-options branch 2 times, most recently from 27dc421 to 0d7b02e Compare March 26, 2026 12:08
@yainsulin yainsulin force-pushed the ISSUE-116/support-dotenv-config-options branch from 0d7b02e to 56db9ee Compare March 26, 2026 12:09
@yainsulin yainsulin merged commit e0b4e0f into main Mar 26, 2026
5 checks passed
@yainsulin yainsulin deleted the ISSUE-116/support-dotenv-config-options branch March 26, 2026 14:00
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.

Support passing DotenvConfigOptions to NodeKit constructor

2 participants