子仓库提交
This commit is contained in:
35
crop-x-new/.env.example
Normal file
35
crop-x-new/.env.example
Normal file
@@ -0,0 +1,35 @@
|
||||
# 环境配置示例文件
|
||||
# 复制此文件为 .env.local 并根据实际情况修改配置
|
||||
|
||||
# 当前环境: development, test, production
|
||||
NODE_ENV=development
|
||||
|
||||
# API 服务器地址 (用于 API 代码生成)
|
||||
API_BASE_URL=http://localhost:8080
|
||||
|
||||
# React 应用配置 (用于前端运行时)
|
||||
REACT_APP_API_URL=http://localhost:8080
|
||||
|
||||
# OpenAPI 文档地址
|
||||
REACT_APP_OPENAPI_URL=http://localhost:8080/openapi.json
|
||||
|
||||
# 其他可选配置
|
||||
# REACT_APP_API_KEY=your-api-key-here
|
||||
# REACT_APP_DEBUG=true
|
||||
|
||||
# 不同环境配置示例:
|
||||
#
|
||||
# 开发环境:
|
||||
# NODE_ENV=development
|
||||
# API_BASE_URL=http://localhost:8080
|
||||
# REACT_APP_API_URL=http://localhost:8080
|
||||
#
|
||||
# 测试环境:
|
||||
# NODE_ENV=test
|
||||
# API_BASE_URL=http://test-api.example.com
|
||||
# REACT_APP_API_URL=http://test-api.example.com
|
||||
#
|
||||
# 生产环境:
|
||||
# NODE_ENV=production
|
||||
# API_BASE_URL=https://api.example.com
|
||||
# REACT_APP_API_URL=https://api.example.com
|
||||
Reference in New Issue
Block a user