简化代理路径
This commit is contained in:
		@@ -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',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user