From 0673856e324b61f63ec4a246298b179f8286d508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Tue, 16 Jan 2024 17:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0robots.txt=E3=80=81sitemap?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 636e59047..0c6336099 100644 --- a/server/index.js +++ b/server/index.js @@ -18,7 +18,7 @@ const options = { }; // 设置代理 -app.use(['/api', '/images', '/system', '/favicon'], (req, res) => { +app.use(['/api', '/images', '/system', '/favicon', '/robots.txt', '/sitemap*.xml', '/sitemap*.txt'], (req, res) => { const proxy = createProxyMiddleware(options); proxy(req, res); });