const path = require('path');
module.exports = {
  publicPath: `/${process.env.VUE_APP_ROUTER}`,
  outputDir: process.env.VUE_APP_ROUTER,
  productionSourceMap: false,
  configureWebpack: (config) => {
    Object.assign(config, {
      resolve: {
        alias: {
          '@': path.resolve(__dirname, './src'),
          '@c': path.resolve(__dirname, './src/components'),
          '@a': path.resolve(__dirname, './src/assets'),
        },
      },
    });
  },
  devServer: {
    port: '9001',
    proxy: {
      '/files': {
        target: 'http://broadcast.waityou24.cn',
      },
      '/point/v1/api': {
        target: 'https://broadcast.waityou24.cn', // 127.0.0.1:13003
        changeOrigin: true,
        ws: false,
      },
    },
  },
};
