Files
accounts-manager-web/.env.template
cloud370 2e79fcfeb0 feat: 配置生产环境后端服务器动态地址支持
- 添加环境变量支持,可通过 NEXT_PUBLIC_API_BASE_URL 配置后端地址
- 实现智能地址获取:无配置时自动使用当前域名+3006端口
- 添加 .env.template 模板文件,方便部署时配置
- 更新 package.json 脚本支持通过 PORT 环境变量配置前端端口
- 修改 .gitignore 允许模板文件提交但保护敏感环境文件

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-23 09:08:55 +08:00

11 lines
246 B
Plaintext
Raw Permalink 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.production 并修改相应配置
# 前端服务端口(默认 3000
PORT=3000
# 后端 API 基础地址
# NEXT_PUBLIC_API_BASE_URL=http://当前域名:3006
# 环境
NODE_ENV=production