This commit is contained in:
admin
2026-01-22 01:16:54 +09:00
parent 86020ada5c
commit 3d91356877
16 changed files with 1862 additions and 494 deletions

View File

@@ -123,14 +123,16 @@ app.mount(
# name="static",
# )
# フロントエンドファイル配信(コメントアウト - file://プロトコルで直接アクセスするため不要)
# frontend_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "frontend")
# if os.path.exists(frontend_path):
# app.mount(
# "/",
# StaticFiles(directory=frontend_path, html=True),
# name="frontend",
# )
# フロントエンドファイル配信
frontend_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "frontend")
if os.path.exists(frontend_path):
app.mount(
"/frontend",
StaticFiles(directory=frontend_path, html=True),
name="frontend",
)
else:
print(f"Frontend path not found: {frontend_path}")