Files
lotteryFront/.env.example
kang 14c297fe1a feat: 接入玩家入口与API代理
- 新增 /api 重写代理,支持 LOTTERY_API_PROXY_TARGET 配置
- 玩家首页切换为 EntryGate,并移除 layout 对 PlayerAppShell 的包裹
- 请求层拆分语言头与玩家鉴权注入逻辑,引入 zustand 依赖
- 允许提交 .env.example 供本地配置参考
2026-05-09 10:17:39 +08:00

14 lines
797 B
Plaintext
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.
# =============================================================================
# 前端本地配置示例
# =============================================================================
# Next 开发服务代理目标:浏览器请求 /api/* 时由 Next 转发到这里。
# 默认值已经在 next.config.ts 中兜底为 http://127.0.0.1:8000本地 Laravel 端口不同时再改。
LOTTERY_API_PROXY_TARGET=http://127.0.0.1:8000
# 可选:如果设置此值,浏览器会绕过 Next 代理,直接请求该 API 地址。
# 一般本地开发建议留空,让请求走同源 /api 代理,避免 CORS。
# NEXT_PUBLIC_LOTTERY_API_BASE_URL=http://127.0.0.1:8000
# 可选:入口授权失败时“返回主站重新进入”的地址。
# NEXT_PUBLIC_MAIN_SITE_URL=http://localhost:5173