fix(admin): 后台校验文件避免 301,并让搜索引擎读到 noindex

serve -s 会把 .html 301 去后缀,百度站长验证失败;同时放开 robots 抓取,避免旧标题一直留在 SERP。
This commit is contained in:
2026-09-01 09:11:43 +08:00
parent f35e1a3ba5
commit eeee55e215
12 changed files with 42 additions and 23 deletions
+2 -1
View File
@@ -46,10 +46,11 @@ module.exports = {
exec_mode: 'fork',
},
{
// cleanUrls:false 见 apps/admin-web/serve.json;否则百度校验 .html 会被 301 去后缀
name: 'dukang-admin-web',
cwd: `${APP_ROOT}/apps/admin-web`,
script: 'npx',
args: 'serve -s dist -l 8094',
args: 'serve dist -l 8094 -c serve.json',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',