Merge branch 'master' into feature/blocks-refactoring

This commit is contained in:
wiz 2022-02-04 16:53:42 +00:00 committed by GitHub
commit 2c60a81c1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,14 @@ PROXY_CONFIG.map(conf => conf.target = "http://localhost:8999");
// Add rules for local backend
if (backendConfigContent) {
PROXY_CONFIG.push({
context: ['/api/address/**', '/api/tx/**', '/api/block/**', '/api/blocks/**'],
context: ['/api/v1/**'],
target: `http://localhost:8999`,
secure: false,
changeOrigin: true,
proxyTimeout: 30000
});
PROXY_CONFIG.push({
context: ['/api/**'],
target: `http://localhost:8999`,
secure: false,
changeOrigin: true,
@ -57,15 +64,7 @@ if (backendConfigContent) {
pathRewrite: {
"^/api/": "/api/v1/"
},
});
PROXY_CONFIG.push({
context: ['/api/v1/**'],
target: `http://localhost:8999`,
secure: false,
changeOrigin: true,
proxyTimeout: 30000
});
}
console.log(PROXY_CONFIG);