fix: 加载环境变量,避免 FastAPI app 无法组装
This commit is contained in:
@@ -69,6 +69,10 @@ def openapi(
|
||||
"""
|
||||
根据代码导出 NyaHome 的 openapi.json 。
|
||||
"""
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv(ENV_PATH)
|
||||
|
||||
from nyahome.server import save_openapi_json
|
||||
|
||||
save_openapi_json(path)
|
||||
|
||||
Reference in New Issue
Block a user