fix(banking): miscellaneous bug fixes (backport #55492) (#55979)

This commit is contained in:
mergify[bot]
2026-06-16 18:43:19 +05:30
committed by GitHub
parent 395e57171e
commit 3243e4237a
38 changed files with 3685 additions and 3418 deletions

View File

@@ -1,13 +1,17 @@
const common_site_config = require('../../../sites/common_site_config.json');
import { readFileSync } from 'node:fs';
const common_site_config = JSON.parse(
readFileSync(new URL('../../../sites/common_site_config.json', import.meta.url), 'utf8')
) as { webserver_port: string | number };
const { webserver_port } = common_site_config;
export default {
'^/(app|api|assets|files|private)': {
target: `http://127.0.0.1:${webserver_port}`,
ws: true,
router: function(req) {
const site_name = req.headers.host.split(':')[0];
return `http://${site_name}:${webserver_port}`;
router: function (req) {
const site_name = req.headers?.host?.split(':')[0];
return `http://${site_name ?? 'localhost'}:${webserver_port}`;
}
}
};