Skip to content

.env.* support and possible to check require field after all config loading#138

Open
JohnJ255 wants to merge 1 commit intoilyakaznacheev:masterfrom
JohnJ255:master
Open

.env.* support and possible to check require field after all config loading#138
JohnJ255 wants to merge 1 commit intoilyakaznacheev:masterfrom
JohnJ255:master

Conversation

@JohnJ255
Copy link
Copy Markdown

@JohnJ255 JohnJ255 commented Apr 9, 2024

  1. support files like .env.local, .env.dev etc...
    But I don't recommend use it if it possible. The better solution is config.yml for base configs and .env in .gitignore for environment changes
  2. you can disable check required fields during loading part of config and enable it again on read last file. See example

sorry for no tests, i hope somebody help me with that

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