Remove unneeded /dev routing

This commit is contained in:
mikiher 2024-10-12 11:18:49 +03:00
parent 076f71d490
commit 69dd82d329
2 changed files with 1 additions and 3 deletions

View File

@ -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: {

View File

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