Skip to content

Commit

Permalink
fix(api/configs): Ignore empty environment variables when loading con…
Browse files Browse the repository at this point in the history
…fig. (#5647)
  • Loading branch information
laipz8200 committed Jun 26, 2024
1 parent 0dfdb61 commit 17d2f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/configs/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class DifyConfig(
# read from dotenv format config file
env_file='.env',
env_file_encoding='utf-8',
env_ignore_empty=True,

# ignore extra attributes
extra='ignore',
Expand Down

0 comments on commit 17d2f0b

Please sign in to comment.