NPM服务重写问题

NPM服务重写问题,npm,serve,Npm,Serve,我对serve(serve.json)有以下配置: 当运行“SERVICE build”(build是提供html文件的文件夹)并尝试访问localhost/logout时,我被重定向到index.html 所需的行为是在访问注销路由时使用logout.html 每次我被重定向到index.html时,“/**”似乎都具有优先权 多谢各位 { "headers": [ { "source": "**/**",

我对serve(serve.json)有以下配置:

当运行“SERVICE build”(build是提供html文件的文件夹)并尝试访问localhost/logout时,我被重定向到index.html

所需的行为是在访问注销路由时使用logout.html

每次我被重定向到index.html时,“/**”似乎都具有优先权

多谢各位

{
  "headers": [
    {
      "source": "**/**",
      "headers": [
        {
          "key": "Content-Security-Policy",
          "value": "frame-ancestors 'none'"
        },
        {
          "key": "X-Frame-Options",
          "value": "deny"
        }
      ]
    }
  ],
  "rewrites": [
    { "source": "/**", "destination": "/index.html" },
    { "source": "/logout", "destination": "/logout.html" }
  ]
}