From 40a60af60870399d44a7771dad7d2724b664578d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Mon, 29 Apr 2024 20:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BB=A3=E7=90=86=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 29c7f6c..129f856 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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',