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) } })