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 -6
View File
@@ -101,18 +101,16 @@ NUXT_PUBLIC_TENANT_ID=
NUXT_PUBLIC_APP_ID=website
NUXT_PUBLIC_TEMPLATE_ID=
# 接口地址
NUXT_PUBLIC_SERVER_API_BASE=https://server.websoft.top/api
# 接口地址(单一后端:内容/CMS、租户解析、模板解析全部走 hjc-api)
NUXT_PUBLIC_MODULES_API_BASE=https://hjc-api.websoft.top/api
NUXT_PUBLIC_APP_API_BASE=https://websopy-api.websoft.top
NUXT_PUBLIC_APP_API_BASE=https://hjc-api.websoft.top
# 多租户域名
NUXT_PUBLIC_BASE_DOMAINS=shoplnk.cn,sitelink.cn,wsdns.cn
```
> ℹ️ `nuxt.config.ts` 内置的 `NUXT_PUBLIC_MODULES_API_BASE` 默认值已统一为
> `https://hjc-api.websoft.top/api`(原 `cms-api.websoft.top` 域名 `/api/*` 已返回 404,
> 故全面切换到 `hjc-api`)。`.env.production` 中也显式指定同一地址。
> ℹ️ `nuxt.config.ts` 内置的接口默认值已统一为 `https://hjc-api.websoft.top`(单后端)。
> `.env.production` 中也显式指定同一地址。
> 若将来再次更换域名,请同步修改 `nuxt.config.ts`、`.env.production` 与 `.env.example`。
## 接口说明