0
点赞
收藏
分享

微信扫一扫

react-router 使用 browserHistory 在 nginx 部署不生效解决方案


假设 dist 放置在 html 下,当匹配 / 以外的目录尝试 try_files 访问 $uri(即 root html/dist)下面的 index.html

        location / {
root html/dist;
index index.html index.htm;
try_files $uri /index.html;
}


举报

相关推荐

0 条评论