1 Star 0 Fork 1

tangshengjian/react-components

forked from keekuun/react-components 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gatsby-config.js 836 Bytes
一键复制 编辑 原始数据 按行查看 历史
keekuun 提交于 2020-12-12 10:55 +08:00 . feat: 增加image viewer
// eslint-disable-next-line @typescript-eslint/no-var-requires
const proxy = require('http-proxy-middleware');
// eslint-disable-next-line @typescript-eslint/no-var-requires
// const { Passport } = require('@casstime/passport');
// const userLoginId = 'zkk';
// const password = '123456';
// const ACCESS_TOKEN_KEY = 'ACCESS_TOKEN';
// const passport = new Passport({
// clientId: 'admin',
// secretKey: '123456',
// origin: 'https://test-api.casstime.com',
// });
module.exports = {
plugins: ['gatsby-plugin-sass'],
developMiddleware: app => {
app.use(
proxy(['/tenant/webim'], {
target: 'http://10.44.19.107/',
changeOrigin: true,
}),
);
app.use(
proxy(['/activity', '/portal'], {
target: 'https://10.44.19.107/',
changeOrigin: true,
}),
);
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tangshengjian/react-components.git
git@gitee.com:tangshengjian/react-components.git
tangshengjian
react-components
react-components
master

搜索帮助