因为项目中使用到了`browserHistory`,所以build之后需要部署到服务器上 nginx配置示例: ``` server { listen 666; server_name 47.92.30.98; root /home/www/antd-admin/dist; location /api { proxy_pass http://localhost:8000/api; } location / { index index.html; try_files $uri $uri/ /index.html; } } ``` 演示地址:http://47.92.30.98:666
因为项目中使用到了
browserHistory,所以build之后需要部署到服务器上nginx配置示例:
演示地址:http://47.92.30.98:666