mirror of
https://github.com/bitwarden/web
synced 2026-01-04 09:33:32 +00:00
WIP angular cli
This commit is contained in:
33
proxy.config.js
Normal file
33
proxy.config.js
Normal 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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user