开发 / 生产双配置
This commit is contained in:
+3
-3
@@ -28,7 +28,7 @@ const serverApiBase =
|
||||
'https://server.websoft.top/api'
|
||||
const modulesApiBase =
|
||||
process.env.NUXT_PUBLIC_MODULES_API_BASE ||
|
||||
'https://cms-api.websoft.top/api'
|
||||
'https://hjc-api.websoft.top/api'
|
||||
const appApiBase =
|
||||
process.env.NUXT_PUBLIC_APP_API_BASE ||
|
||||
'https://websopy-api.websoft.top'
|
||||
@@ -81,9 +81,9 @@ export default defineNuxtConfig({
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||
// 提前与内容/接口源站建立连接,降低首字节与图片加载延迟
|
||||
{ rel: 'preconnect', href: 'https://server.websoft.top', crossorigin: '' },
|
||||
{ rel: 'preconnect', href: 'https://cms-api.websoft.top', crossorigin: '' },
|
||||
{ rel: 'preconnect', href: 'https://hjc-api.websoft.top', crossorigin: '' },
|
||||
{ rel: 'dns-prefetch', href: 'https://server.websoft.top' },
|
||||
{ rel: 'dns-prefetch', href: 'https://cms-api.websoft.top' },
|
||||
{ rel: 'dns-prefetch', href: 'https://hjc-api.websoft.top' },
|
||||
// 思源黑体(Noto Sans SC,SIL 开源许可,版权无忧)网页字体,全站统一字体
|
||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.cn' },
|
||||
{ rel: 'preconnect', href: 'https://fonts.gstatic.cn', crossorigin: '' },
|
||||
|
||||
Reference in New Issue
Block a user