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(core): add options to disable loading dotenv files #14016

Closed
wants to merge 4 commits into from

Commits on Dec 24, 2022

  1. feat(core): add options to disable loading dotenv files

    Add task runner option 'loadDotEnvFiles' to the default task runner.
    When this option is false, no .env file as described in the env file
    hierarchy of the Nx docs will be loaded. When this option is explicitly
    set to true or not set at all, then the .env files will be loaded
    normally.
    
    Add option 'loadDotEnvFile' to run-commands.
    When this option is false, or the task runner's 'loadDotEnvFiles' is
    explicitly set to false, then the ".env" file in the CWD will not be
    loaded.
    When this option is explicitly set its behaviour will override the
    option 'loadDotEnvFiles' from the task runner.
    This option will be ignored if the 'envFile' option is present.
    When this option is explicitly set to true or not set at all, then
    by default the ".env" file from the CWD will be loaded normally.
    dschnare committed Dec 24, 2022
    Configuration menu
    Copy the full SHA
    af174ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df7a37c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fd9a4f View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2022

  1. Configuration menu
    Copy the full SHA
    8f096f2 View commit details
    Browse the repository at this point in the history