Skip to content

feat: allowlisting which variables can be undefined#379

Open
preynal wants to merge 1 commit intotusbar:masterfrom
preynal:master
Open

feat: allowlisting which variables can be undefined#379
preynal wants to merge 1 commit intotusbar:masterfrom
preynal:master

Conversation

@preynal
Copy link
Copy Markdown

@preynal preynal commented Dec 6, 2023

This PR enables defining allowUndefined as an array of variables that will not throw even if the var is undefined. It doesn't change the behaviour when allowUndefined is true or false

{
  "plugins": [
    ["dotenv-import", {
      "allowUndefined": ["ALLOWED_UNDEFINED_VAR"]
    }]
  ]
}

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