|
@@ -5,7 +5,11 @@ const CDN_URL = process.env.CDN_URL || '';
|
|
|
|
|
|
module.exports = {
|
|
|
publicPath:
|
|
|
- process.env.NODE_ENV === 'production' ? (CDN_URL ? CDN_URL : '/') : '/',
|
|
|
+ process.env.NODE_ENV === 'production'
|
|
|
+ ? CDN_URL
|
|
|
+ ? CDN_URL
|
|
|
+ : '/tparking/'
|
|
|
+ : '/tparking/',
|
|
|
assetsDir: 'static',
|
|
|
css: {
|
|
|
loaderOptions: {
|
|
@@ -92,7 +96,7 @@ module.exports = {
|
|
|
},
|
|
|
},
|
|
|
'/qaPayment': {
|
|
|
- target: 'https://qa-apim.kerryplus.com/c/api/payment/v1', //代理地址,这里设置的地址会代替axios中设置的baseURL
|
|
|
+ target: 'https://qa-apim.kerryplus.com/c/api/payment/v1', //代理地址,这里设置的地址会代替axios中设置的baseURL
|
|
|
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
|
|
|
//ws: true, // proxy websockets
|
|
|
//pathRewrite方法重写url
|