Files
hjc-web/.env.development
T
weicw-dshsa 4a5a8f306a fix: NUXT_PUBLIC_APP_ID 改为数字主键,接口基址切正式域名
1. appId 语义修正
   NUXT_PUBLIC_APP_ID 之前填的是 productCode('website'),但下游拿它去请求
   /api/app/product/detail/{productId},后端按 Integer 解析主键,于是转换失败。
   改为 app_product.product_id 数字主键(种子数据为 42);nuxt.config.ts 的
   缺省值同步去掉 'website' 回退——留空时下游按空值降级,绝不回退到编码值。

2. 接口基址切 hjc-api.sitelnk.cn
   .env.example / .env.production / nuxt.config.ts 的缺省值与 preconnect、
   dns-prefetch 一并从 hjc-api.websoft.top 改为正式域名;scripts/ 与
   outputs/ 文档里的旧地址同步更新。

注:本提交含若干文件的 CRLF/LF 行尾归一,实际内容改动见 git diff --ignore-cr-at-eol。
2026-09-25 05:22:58 +08:00

41 lines
1.8 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 dev)
# ------------------------------------------------------------
# 该文件会被提交到 git,供所有开发者共享;个人差异请写进
# .env.local(不提交,优先级更高)。
# ============================================================
# ---------- 租户 / 模板 ----------
# 本地开发用固定租户,生产环境通过域名自动识别租户
NUXT_PUBLIC_TENANT_ID=10626
# 应用产品 ID(app_product.product_id 数字主键,种子数据为 42)。
# 注意:不是 productCode('website'),按编码查询会打到
# /api/app/product/detail/{productId} 导致 Integer 转换失败。
NUXT_PUBLIC_APP_ID=42
NUXT_PUBLIC_TEMPLATE_ID=template-07
# 本地调试用:强制指定模板,优先级高于应用/站点绑定。留空表示不覆盖
NUXT_PUBLIC_FORCE_TEMPLATE_ID=
# ---------- 后端接口 ----------
# 本地后端(hjc-java)默认端口 9200,内容/租户解析/模板解析全部走它。
# 若要联调远程环境,把下面三行注释掉即可,nuxt.config.ts 会自动回落到生产地址
NUXT_PUBLIC_MODULES_API_BASE=http://127.0.0.1:9200/api
NUXT_PUBLIC_APP_API_BASE=http://127.0.0.1:9200
# 本地后端同时提供图片/文件时打开(默认走 https://file.wsdns.cn)
# NUXT_PUBLIC_FILE_SERVER_BASE=http://127.0.0.1:9200
# ---------- 站点 / 多租户域名 ----------
NUXT_PUBLIC_BASE_DOMAIN=shoplnk.cn
NUXT_PUBLIC_BASE_DOMAINS=shoplnk.cn,sitelink.cn,wsdns.cn
NUXT_PUBLIC_SUBDOMAIN_PREFIXES=site,shop,store,mp,app,oa
# ---------- 可选覆盖(留空 = 由后台配置决定) ----------
NUXT_PUBLIC_SITE_NAME=
NUXT_PUBLIC_PHONE=
NUXT_PUBLIC_WX_QRCODE=
NUXT_PUBLIC_CONTACT_CAPTCHA=
# 订阅状态缓存秒数(仅服务端可见)
NUXT_SUBSCRIPTION_CACHE_TTL=60