Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add inputOnly option for exclusive input utilization #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

snaka
Copy link

@snaka snaka commented Apr 28, 2023

This commit adds the inputOnly option to EnvsafeOpts, enabling exclusive use of input values and enhancing typo detection. When inputOnly is set to true, envsafe disregards runtime environment variable references and solely relies on the provided input values.

This improvement ensures better reliability and prevents unnoticed typos in environment variable references that were previously masked by fallback values.


I strongly agree with the opinion that there could be a better name than "inputOnly" for the introduced option.

Closes #146

This commit adds the `inputOnly` option to `EnvsafeOpts`, enabling
exclusive use of input values and enhancing typo detection.
When `inputOnly` is set to `true`, `envsafe` disregards runtime
environment variable references and solely relies on the provided
input values.

This improvement ensures better reliability and prevents unnoticed
typos in environment variable references that were previously masked
by fallback values.
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.

Add Option to Disable Fallback Mechanism in Next.js envsafe
1 participant