thread-master/apps/web/.env.example

17 lines
849 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ── 前後端串接 ──────────────────────────────────────────
# 預設建議:不設 VITE_API_BASE讓請求走 same-origin
# 瀏覽器 → Vite(/api) → proxy → gateway:8888
# 遠端開 FEthreads-tool-dev.30cm.net時必須這樣
# 不要寫死 http://127.0.0.1:8888那會打到使用者自己的電腦
#
# 本機若要直連 gateway跳過 proxy須將這個前端 origin 加入
# backend 的 CORS_ALLOWED_ORIGINSHTTPS 頁面不可直連 HTTP gateway。
# VITE_API_BASE=http://127.0.0.1:8888
#
# 走 proxy推薦
VITE_API_BASE=
# 預設資料來源mock | live可被設定頁 / localStorage 覆寫)
# 會員Admin設定 live 時打 apps/backend其餘業務域仍 mock 到 M2+
VITE_DATA_SOURCE=live