refactor: 租户/模板解析收敛到 hjc-java 单一后端,移除 websopy/server 依赖

- appApiBase 指向 hjc-java(hjc.sitelnk.cn 域名→租户解析、模板映射、订阅检查)
- 删除死配置 NUXT_PUBLIC_SERVER_API_BASE(代码中零消费)
- fileServerBase 改从 APP_API_BASE 推导(原从 server.websoft.top 推导)
- preconnect/dns-prefetch 指向 hjc-api 与文件源站
- .env.example/README 同步

验证:本地 node .output 预览,Host=hjc.sitelnk.cn 的 /api/site/info
经 hjc-java 解析成功返回站点信息(code=0)——租户解析链不再依赖任何外部服务。
This commit is contained in:
2026-09-24 10:24:16 +08:00
parent d360998559
commit 1cbc913262
5 changed files with 20 additions and 32 deletions
+4 -5
View File
@@ -6,12 +6,11 @@
# ============================================================
# ---------- 接口(生产必须指向线上) ----------
# 内容/CMS 接口统一使用 hjc-api 域名(原 cms-api.websoft.top 的 /api/* 已返回 404)
# 单一后端:内容/CMS、租户解析、模板解析全部走 hjc-api
NUXT_PUBLIC_MODULES_API_BASE=https://hjc-api.websoft.top/api
NUXT_PUBLIC_SERVER_API_BASE=https://server.websoft.top/api
NUXT_PUBLIC_APP_API_BASE=https://websopy-api.websoft.top
# 图片/文件服务器。留空则由 nuxt.config.ts 从 SERVER_API_BASE 推导出
# https://server.websoft.top,无需手写
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=
# ---------- 站点 / 多租户域名 ----------