Files
jiang13-bbs/frontend/.env.example
freefire 40bbad2c82 公开页补齐自引用 Canonical 与按类型的结构化数据,图片补上说明文字。
后台设置和内容编辑改成可导航布局;部署用访客 origin 生成 Canonical,避免落到容器地址。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 00:11:24 +08:00

20 lines
1.1 KiB
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.
# 前端环境变量示例:复制为 .env.local(本地)或在部署平台配置
# 客户端交互请求走同源相对路径 /api/*(由 next.config.ts rewrite 代理),
# 以下地址仅用于 SSR 服务端渲染与 middleware 静默轮转直连后端。
# SSR/浏览器构建均可读;本地开发默认值即 http://localhost:3001
NEXT_PUBLIC_API_URL=http://localhost:3001
# 仅服务端可见(middleware 与 SSR 优先使用)。
# 部署到 Cloudflare Workers 等边缘环境时【必须】显式配置为后端 HTTPS 地址,
# 边缘运行时不存在 localhost,留空会导致 SSR 登录态轮转直接放行失效。
# BACKEND_URL=https://your-backend.example.com
# 可选。官方 Docker 构建会写入与仓库根 VERSION 相同的值;本地 dev 可不设。
# NEXT_PUBLIC_APP_VERSION=0.1.0
# 访客看到的公开 origin(Canonical / sitemap)。与 Go CORS 的 SITE_URL 相同。
# 不要填 BACKEND_URL / 容器名。本地不设则开发态回退 http://localhost:3000;
# 生产缺失或非法时不会回退 localhost,而是省略 Canonical。
# SITE_URL=http://localhost:3000