MicroFish/frontend/.env.example

10 lines
659 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 读取,仅 VITE_ 前缀会暴露到客户端包)
# 本地前端构建:复制为 frontend/.env 并填写Docker 构建则由 docker compose 经 build-arg 注入(见根 .env 的 VITE_API_KEY
# 必须等于后端 .env 的 API_KEY —— 打包后的 UI 会用它作为 X-API-Key 调用 /api/*。
# ⚠️ 会被打进客户端包、可被任何访问者提取,不能当作多租户隔离手段(见 README 安全说明)。
VITE_API_KEY=
# 后端 API 基地址(默认走前端预览/开发服务器的 /api 代理到后端;如直连后端请填写完整地址)
# VITE_API_BASE_URL=http://localhost:5001