mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 15:51:11 +08:00
35 lines
832 B
Plaintext
35 lines
832 B
Plaintext
# SPA Preview Server Configuration Template
|
|
# 复制此文件为 .env 并根据需要修改配置
|
|
|
|
# 服务器配置
|
|
# Server configuration
|
|
PORT=5173
|
|
HOST=0.0.0.0
|
|
|
|
# API 代理配置
|
|
# API proxy configuration
|
|
API_TARGET=http://localhost:3000
|
|
API_PREFIX=/api
|
|
# API 代理模式: 'prefix'(路径替换) 或 'include'(路径包含)
|
|
# API proxy mode: 'prefix' (path replacement) or 'include' (path inclusion)
|
|
API_PROXY_MODE=prefix
|
|
|
|
# 静态文件配置
|
|
# Static files configuration
|
|
PUBLIC_DIR=public
|
|
FALLBACK_FILE=index.html
|
|
|
|
# 开发模式配置
|
|
# Development mode configuration
|
|
DEV_MODE=true
|
|
LOG_LEVEL=info
|
|
|
|
# CORS 配置
|
|
# CORS configuration
|
|
CORS_ENABLED=true
|
|
CORS_ORIGIN=*
|
|
|
|
# SPA 路由配置
|
|
# SPA routing configuration
|
|
SPA_FALLBACK_ENABLED=true
|
|
SPA_EXCLUDE_EXTENSIONS=.js,.css,.png,.jpg,.jpeg,.gif,.svg,.ico,.woff,.woff2,.ttf,.eot |