ant design pro build 部署空白问题
在ngnix中加入伪静态配置即可解决
- /src/router/index.ts
- 使用HASH则不用配置
location / {
# 用于配合 browserHistory使用
try_files $uri $uri/ /index.html;
# 如果有资源,建议使用 https + http2,配合按需加载可以获得更好的体验
# rewrite ^/(.*)$ https://preview.pro.ant.design/$1 permanent;
}```