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