feat(cli): support home credentials resolution#375
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bec376382d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (projectDotenvResult == null) { | ||
| projectDotenvInjectedValues = undefined | ||
| projectDotenvPreviousValues = undefined | ||
| return undefined |
There was a problem hiding this comment.
Restore injected .env vars when file disappears
If loadProjectDotenvIntoProcessEnv() is called again in the same working directory after .env has been removed, this branch clears the bookkeeping state but never restores previously injected keys, so stale values remain in process.env. In a long-lived process that invokes main()/runSig() multiple times, deleted credentials or endpoints can still be used on later invocations, which breaks the documented resolution behavior and can apply outdated auth unexpectedly.
Useful? React with 👍 / 👎.
Summary
~/.transloadit/credentialssupport to the Node CLI with explicit precedenceValidation
yarn workspace @transloadit/node checkyarn check