diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-05 19:37:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-05 19:37:52 +0200 |
commit | 4da3272bf7893760f6710c9a1ec7de02358136e6 (patch) | |
tree | 92eb961bf20a7ef9f7c0650ba288baf512986fca /packages/client/vue.config.js | |
parent | 4e3074dfd752dd52951d300090c642aee76cfaac (diff) |
Reorganized into a monorepo, refactored the frontend again, goodbye Parcel
Diffstat (limited to 'packages/client/vue.config.js')
-rw-r--r-- | packages/client/vue.config.js | 25 |
1 files changed, 25 insertions, 0 deletions
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 + } + } + } +}; |