module.exports = { /** * You will need to set publicPath if you plan to deploy your site under a sub path, * for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/, * then publicPath should be set to "/bar/". * In most cases please use '/' !!! * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: "./", outputDir: "dist", assetsDir: "static", lintOnSave: process.env.NODE_ENV === "development", productionSourceMap: false, devServer: { port: 9550, open: true, overlay: { warnings: false, errors: true, }, proxy: { // change xxx-api/login => mock/login // detail: https://cli.vuejs.org/config/#devserver-proxy "/game": { ws: false, target: "https://juejin-game.bytedance.com", changeOrigin: true, }, "/user": { ws: false, target: "https://api.juejin.cn/user_api/v1/user/get", changeOrigin: true, }, }, }, };