Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

-LAN-17d2f0bb0d3c
diff --git a/api/configs/app_config.py b/api/configs/app_config.py
index 4467b84c866..f3bab64fb2d 100644
--- a/api/configs/app_config.py
+++ b/api/configs/app_config.py
@@ -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',