chore: display the direct command in add worker

This commit is contained in:
jialin
2024-12-23 16:33:08 +08:00
parent 4391705c9a
commit e7de1896ea
32 changed files with 359 additions and 125 deletions
+3 -12
View File
@@ -20,18 +20,9 @@ export default function createProxyTable(target?: string) {
ws: true,
pathRewrite: (pth: string) => pth.replace(`/^/${api}`, `/${api}`),
// onProxyRes: (proxyRes: any, req: any, res: any) => {
// console.log('proxyRes=====', req);
// proxyRes.on('data', (chunk: any) => {
// res.write(chunk);
// });
// proxyRes.on('end', () => {
// res.end();
// });
// proxyRes.on('error', (err: any) => {
// res.status(500).end('Stream error');
// console.log('headers=========', {
// res: proxyRes.headers,
// req: req.headers
// });
// },
headers: {