简化代理路径
This commit is contained in:
parent
834b348ee1
commit
40a60af608
@ -3,22 +3,7 @@ export default {
|
|||||||
buildModules: ['nuxt-animejs'],
|
buildModules: ['nuxt-animejs'],
|
||||||
modules: ['@nuxtjs/axios', '@nuxtjs/proxy'],
|
modules: ['@nuxtjs/axios', '@nuxtjs/proxy'],
|
||||||
axios: { proxy: true, proxyHeaders: true },
|
axios: { proxy: true, proxyHeaders: true },
|
||||||
proxy: [
|
proxy: { '/api': 'http://localhost:2333' },
|
||||||
['/api', {
|
|
||||||
target: 'http://localhost:2333',
|
|
||||||
pathRewrite: {
|
|
||||||
'^/api': '/',
|
|
||||||
changeOrigin: true
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
['/data', {
|
|
||||||
target: 'http://localhost:2333',
|
|
||||||
pathRewrite: {
|
|
||||||
'^/api': '/',
|
|
||||||
changeOrigin: true
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
],
|
|
||||||
css: ['@fortawesome/fontawesome-free/css/all.css'],
|
css: ['@fortawesome/fontawesome-free/css/all.css'],
|
||||||
pageTransition: {
|
pageTransition: {
|
||||||
name: 'page',
|
name: 'page',
|
||||||
|
Loading…
Reference in New Issue
Block a user