chore: image custom params

This commit is contained in:
jialin
2024-11-27 17:07:22 +08:00
parent ba76498acc
commit 230120fff5
19 changed files with 473 additions and 206 deletions
+2 -2
View File
@@ -20,8 +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) => {
// console.log('chunk=====', chunk);
// res.write(chunk);
// });
@@ -30,7 +31,6 @@ export default function createProxyTable(target?: string) {
// });
// proxyRes.on('error', (err: any) => {
// console.error('Proxy stream error:', err);
// res.status(500).end('Stream error');
// });
// },