feat:接口联调
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
const officialApiProxyTarget = (process.env.NUXT_OFFICIAL_API_PROXY_TARGET || 'http://localhost:8080').replace(/\/$/, '')
|
||||
|
||||
export default defineNuxtConfig({
|
||||
runtimeConfig: {
|
||||
officialApiProxyTarget,
|
||||
public: {
|
||||
officialApiBase: process.env.NUXT_PUBLIC_OFFICIAL_API_BASE || '/api'
|
||||
}
|
||||
},
|
||||
future: {
|
||||
compatibilityVersion: 3
|
||||
},
|
||||
@@ -13,6 +21,14 @@ export default defineNuxtConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
nitro: {
|
||||
devProxy: {
|
||||
'/api': {
|
||||
target: `${officialApiProxyTarget}/api`,
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
title: '大马棒 · 云途全域 GEO',
|
||||
|
||||
Reference in New Issue
Block a user