mirror of https://github.com/bitwarden/web.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
772 B
33 lines
772 B
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, |
|
}, |
|
};
|
|
|