Files
hjc-web/.env.production
T
weicw-dshsa 85207e1648 chore(domain): 官网域名切 gxhuijicai.com,后端 API 迁 hjc-api.websoft.top
- nuxt.config.ts:API 默认值 → hjc-api.websoft.top;主域清单与 allowedHosts
  加入 gxhuijicai.com(居首;shoplnk/sitelink/wsdns 平台遗留主域共存保留);
  preconnect/dns-prefetch 同步
- .env.production / .env.development / .env.example / README / scripts 默认值同步
2026-09-30 07:55:59 +08:00

33 lines
1.6 KiB
Bash
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.
# ============================================================
# 生产打包配置(npm run build:prod)
# ------------------------------------------------------------
# ⚠️ 该文件会被提交到 git,只放「非敏感、稳定」的生产参数。
# 任何密钥类内容都不要写在这里。
# ============================================================
# ---------- 接口(生产必须指向线上) ----------
# 单一后端(已迁移):内容/CMS、租户解析、模板解析全部走 hjc-api.websoft.top
NUXT_PUBLIC_MODULES_API_BASE=https://hjc-api.websoft.top/api
NUXT_PUBLIC_APP_API_BASE=https://hjc-api.websoft.top
# 图片/文件服务器。留空则由 nuxt.config.ts 从 APP_API_BASE 推导出
# https://hjc-api.websoft.top,无需手写
NUXT_PUBLIC_FILE_SERVER_BASE=
# ---------- 站点 / 多租户域名 ----------
# 生产通过域名自动识别租户,因此不设置 TENANT_ID / TEMPLATE_ID,
# 也不设置 FORCE_TEMPLATE_ID,避免写死租户导致所有域名串号
NUXT_PUBLIC_BASE_DOMAIN=gxhuijicai.com
NUXT_PUBLIC_BASE_DOMAINS=gxhuijicai.com,shoplnk.cn,sitelink.cn,wsdns.cn
NUXT_PUBLIC_SUBDOMAIN_PREFIXES=site,shop,store,mp,app,oa
# ---------- 可选覆盖(留空 = 由后台配置决定) ----------
# 站名/电话/二维码一律留空,从后台 CMS 读取,便于运营自行修改
NUXT_PUBLIC_SITE_NAME=
NUXT_PUBLIC_PHONE=
NUXT_PUBLIC_WX_QRCODE=
# 留言验证码:留空表示由后台「网站设置」的 requireCaptcha 决定
NUXT_PUBLIC_CONTACT_CAPTCHA=
# 订阅状态缓存秒数(仅服务端可见)
NUXT_SUBSCRIPTION_CACHE_TTL=60