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
# 遠端開 FE(threads-tool-dev.30cm.net)時必須這樣,
# 不要寫死 http://127.0.0.1:8888(那會打到使用者自己的電腦)。
#
# 本機若要直連 gateway(跳過 proxy):須將這個前端 origin 加入
# backend 的 CORS_ALLOWED_ORIGINS;HTTPS 頁面不可直連 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