fix(api/configs): Ignore empty environment variables when loading config. (#5647)

This commit is contained in:
-LAN- 2024-06-26 21:39:19 +08:00 committed by GitHub
parent 0dfdb61ee9
commit 17d2f0bb0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',