From 4da3272bf7893760f6710c9a1ec7de02358136e6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 5 Jun 2021 19:37:52 +0200 Subject: Reorganized into a monorepo, refactored the frontend again, goodbye Parcel --- packages/client/vue.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/client/vue.config.js (limited to 'packages/client/vue.config.js') diff --git a/packages/client/vue.config.js b/packages/client/vue.config.js new file mode 100644 index 0000000..94cfb20 --- /dev/null +++ b/packages/client/vue.config.js @@ -0,0 +1,25 @@ +const yaml = require("js-yaml"); +const fs = require("fs"); + +const settings = yaml.load(fs.readFileSync(`${__dirname}/../../settings.yml`, "utf8")); + +module.exports = { + devServer: { + host: settings.host, + port: settings.dev_port, + proxy: { + "^/api": { + target: `http://${settings.host}:${settings.port}`, + changeOrigin: true + }, + "^/[a-zA-Z0-9\\.\\-_]+/info/refs": { + target: `http://${settings.host}:${settings.port}`, + changeOrigin: true + }, + "^/[a-zA-Z0-9\\.\\-_]+/git-upload-pack": { + target: `http://${settings.host}:${settings.port}`, + changeOrigin: true + } + } + } +}; -- cgit v1.2.3-18-g5258