guoziyun 1 년 전
부모
커밋
b2002b21d1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      routes/proxy.js

+ 2 - 0
routes/proxy.js

@@ -7,6 +7,8 @@ const config = require('../config/app');
 router.use('/', async (req, res) => {
   console.log(`proxy req.url = ${req.url}`);
   const targetUrl = `${config.resHost}${req.url}`; // 替换为目标服务器的 URL
+  console.log(`targetUrl = ${targetUrl}`);
+
   const method = req.method;
   const headers = {
     ...req.headers,