const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ publicPath:process.env.NODE_ENV==="production"?"./":"/", // outputDir:"dist", // assetsDir:"static", lintOnSave: false, transpileDependencies: true, // chainWebpack: (config) => { // config.resolve.alias // .set("@", path.resolve("src")) // }, filenameHashing: true, devServer: { proxy: { '/hwapi': { target: 'https://iam.cn-north-4.myhuaweicloud.com', secure: false, changeOrigin: true, pathRewrite: { '^/hwapi': '' } }, '/hwfaceapi': { target: 'https://face.cn-north-4.myhuaweicloud.com', secure: false, changeOrigin: true, pathRewrite: { '^/hwfaceapi': '' } }, '/bdapi': { target: 'https://aip.baidubce.com', secure: false, changeOrigin: true, pathRewrite: { '^/bdapi': '' } }, '/v5api': { target: 'https://v5qy.te.baibaodun.com.cn', secure: false, changeOrigin: true, pathRewrite: { '^/v5api': '' } } } } }) // const teemLinkBaseUrl = isDev // ? "https://v5qy.te.baibaodun.com.cn" // : "https://v5qy.baibaodun.cn";