You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB
Bash

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 复制为 .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=FastapiAdmin
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
# ---------- 生产(复制到 .env.production---------
VITE_APP_ENV=production
VITE_APP_TITLE=FastapiAdmin
VITE_APP_BASE_API=/api/v1
VITE_API_BASE_URL=http://fastapiadmin-backend:8001
VITE_DROP_CONSOLE=true
# 留空则使用当前前端域名,例如 https://admin.example.com -> wss://admin.example.com
VITE_APP_WS_ENDPOINT=