chore(domain): 官网接口基址迁 api.gxhuijicai.com
后端对外域名由 hjc-api.websoft.top 迁到 api.gxhuijicai.com: - nuxt.config.ts 的 modulesApiBase / appApiBase / fileServerBase 默认值, 以及 preconnect / dns-prefetch 提示 - .env.production、.env.example、README 的环境变量说明 - scripts/cms_fill_image.py、scripts/publish-cms-content.mjs 的默认 CMS 地址 - database/template-switch-verification.md、outputs/ 两份快照里的地址表述 注意 appApiBase 同时是 fileServerBase 的来源(nuxt.config.ts 取其 origin, server/api/file/[...path].ts 用它代理文件下载)。已实测新域名与旧域名在 /api/file/** 上行为一致,本次迁移不改变该路径的结果。 已实测新域名对官网用到的接口可达(/api/hjc/** 正常),CORS 预检放行。
This commit is contained in:
@@ -104,15 +104,15 @@ NUXT_PUBLIC_TENANT_ID=
|
||||
NUXT_PUBLIC_APP_ID=42
|
||||
NUXT_PUBLIC_TEMPLATE_ID=
|
||||
|
||||
# 接口地址(单一后端:内容/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
|
||||
# 接口地址(单一后端:内容/CMS、租户解析、模板解析全部走 api.gxhuijicai.com)
|
||||
NUXT_PUBLIC_MODULES_API_BASE=https://api.gxhuijicai.com/api
|
||||
NUXT_PUBLIC_APP_API_BASE=https://api.gxhuijicai.com
|
||||
|
||||
# 多租户域名(官网主域 gxhuijicai.com 居首;其余为平台遗留主域,共存保留)
|
||||
NUXT_PUBLIC_BASE_DOMAINS=gxhuijicai.com,shoplnk.cn,sitelink.cn,wsdns.cn
|
||||
```
|
||||
|
||||
> ℹ️ `nuxt.config.ts` 内置的接口默认值已统一为 `https://hjc-api.websoft.top`(单后端)。
|
||||
> ℹ️ `nuxt.config.ts` 内置的接口默认值已统一为 `https://api.gxhuijicai.com`(单后端)。
|
||||
> `.env.production` 中也显式指定同一地址。
|
||||
> 若将来再次更换域名,请同步修改 `nuxt.config.ts`、`.env.production` 与 `.env.example`。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user