问题描述
我为serv(serve.json)具有以下配置:
{
"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" }
]
}
当运行“ serve build”(build是提供html文件的文件夹)并尝试访问localhost / logout时,我被重定向到index.html。
所需的行为是在访问注销路由时使用logout.html。
每次我重定向到index.html时,“ / **”似乎都具有优先权。
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)