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:
+5
-5
@@ -28,14 +28,14 @@ const siteName = process.env.NUXT_PUBLIC_SITE_NAME || ''
|
||||
|
||||
const modulesApiBase =
|
||||
process.env.NUXT_PUBLIC_MODULES_API_BASE ||
|
||||
'https://hjc-api.websoft.top/api'
|
||||
'https://api.gxhuijicai.com/api'
|
||||
const appApiBase =
|
||||
process.env.NUXT_PUBLIC_APP_API_BASE ||
|
||||
'https://hjc-api.websoft.top'
|
||||
'https://api.gxhuijicai.com'
|
||||
const fileServerBase =
|
||||
process.env.NUXT_PUBLIC_FILE_SERVER_BASE ||
|
||||
getOrigin(appApiBase) ||
|
||||
'https://hjc-api.websoft.top'
|
||||
'https://api.gxhuijicai.com'
|
||||
const baseDomain =
|
||||
process.env.NUXT_PUBLIC_BASE_DOMAIN || 'gxhuijicai.com'
|
||||
// 多主域清单:子域名租户解析支持的主域(逗号分隔)。
|
||||
@@ -81,8 +81,8 @@ export default defineNuxtConfig({
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||
// 提前与接口/图片源站建立连接,降低首字节与图片加载延迟
|
||||
{ rel: 'preconnect', href: 'https://hjc-api.websoft.top', crossorigin: '' },
|
||||
{ rel: 'dns-prefetch', href: 'https://hjc-api.websoft.top' },
|
||||
{ rel: 'preconnect', href: 'https://api.gxhuijicai.com', crossorigin: '' },
|
||||
{ rel: 'dns-prefetch', href: 'https://api.gxhuijicai.com' },
|
||||
{ rel: 'preconnect', href: 'https://file.wsdns.cn', crossorigin: '' },
|
||||
{ rel: 'dns-prefetch', href: 'https://file.wsdns.cn' },
|
||||
// 思源黑体(Noto Sans SC,SIL 开源许可,版权无忧)网页字体,全站统一字体
|
||||
|
||||
Reference in New Issue
Block a user