1
0
mirror of https://github.com/bitwarden/web synced 2026-01-04 09:33:32 +00:00

WIP angular cli

This commit is contained in:
Hinton
2022-01-25 20:06:29 +01:00
parent f387a4d469
commit 17f5cf74b5
101 changed files with 23671 additions and 3553 deletions

33
proxy.config.js Normal file
View File

@@ -0,0 +1,33 @@
const config = require("./config.js");
const ENV = process.env.ENV == null ? "development" : process.env.ENV;
const envConfig = config.load(ENV);
config.log(envConfig);
module.exports = {
"/api": {
target: envConfig.dev?.proxyApi,
pathRewrite: { "^/api": "" },
secure: false,
changeOrigin: true,
},
"/identity": {
target: envConfig.dev?.proxyIdentity,
pathRewrite: { "^/identity": "" },
secure: false,
changeOrigin: true,
},
"/events": {
target: envConfig.dev?.proxyEvents,
pathRewrite: { "^/events": "" },
secure: false,
changeOrigin: true,
},
"/notifications": {
target: envConfig.dev?.proxyNotifications,
pathRewrite: { "^/notifications": "" },
secure: false,
changeOrigin: true,
},
};