Files
FastapiAdmin/frontend/web/.env.example
T

28 lines
849 B
Bash
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.
# 复制为 .env 并根据本地情况修改;勿提交真实密钥到公开仓库。
# Vite 会加载:.env、.env.[mode](如 .env.development),后者覆盖前者同名变量。
# ---------- 通用(建议复制到 .env----------
VITE_VERSION=3.0.0
VITE_PORT=5180
VITE_BASE_URL=/
# frontend | backend | mixed —— 菜单与路由来源(须与后端约定一致)
VITE_ACCESS_MODE=mixed
VITE_WITH_CREDENTIALS=false
VITE_OPEN_ROUTE_INFO=false
VITE_LOCK_ENCRYPT_KEY=please-change-me
VITE_API_TIMEOUT=60000
VITE_APP_BASE_API=/api/v1
# ---------- 开发(复制到 .env.development----------
VITE_APP_ENV=development
VITE_APP_TITLE=FastAPI Admin
VITE_API_URL=/
# 本地后端;开发时代理会把 /api/v1 转到此处
VITE_API_BASE_URL=http://127.0.0.1:8001
VITE_DROP_CONSOLE=false
VITE_APP_WS_ENDPOINT=ws://127.0.0.1:8001