From 69dd82d329f63f54a41ef658b503bb58be3f6ed4 Mon Sep 17 00:00:00 2001 From: mikiher Date: Sat, 12 Oct 2024 11:18:49 +0300 Subject: [PATCH] Remove unneeded /dev routing --- client/nuxt.config.js | 3 +-- client/plugins/axios.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/nuxt.config.js b/client/nuxt.config.js index 0bca2a14..1954696e 100644 --- a/client/nuxt.config.js +++ b/client/nuxt.config.js @@ -72,8 +72,7 @@ module.exports = { ], proxy: { - '/api/': { target: process.env.NODE_ENV !== 'production' ? 'http://localhost:3333' : '/' }, - '/dev/': { target: 'http://localhost:3333', pathRewrite: { '^/dev/': '' } } + [`${process.env.ROUTER_BASE_PATH || ''}/api/`]: { target: process.env.NODE_ENV !== 'production' ? 'http://localhost:3333' : '/' } }, io: { diff --git a/client/plugins/axios.js b/client/plugins/axios.js index 4ea9b85b..c068c4e9 100644 --- a/client/plugins/axios.js +++ b/client/plugins/axios.js @@ -13,7 +13,6 @@ export default function ({ $axios, store, $config }) { } if (process.env.NODE_ENV === 'development') { - config.url = `/dev${config.url}` console.log('Making request to ' + config.url) } })