Commit 4e2e89e311f158c33321d819ac3e14b70e84dbba

Authored by ly525
1 parent 018a0082

docs(deploy) add hint for nginx config

docs/zh/getting-started/deployment.md
... ... @@ -68,6 +68,11 @@ server {
68 68 proxy_pass http://localhost:1337;
69 69 }
70 70  
  71 + # 注意:
  72 + # 鲁班H5 核心App 部分URL 路径为: https://domain-for-luban/main
  73 + # 因此 `luban-h5/front-end/h5/vue.config.js` 中 publicPath 中的配置为 `publicPath: isProd ? '/main/' : '/'`
  74 + # 请根据自己的实际情况做调整,如果你的项目是部署在根路径(比如:https://domain-for-luban),修改为: publicPath: '/' 即可
  75 +
71 76 location / {
72 77 root /home/centos/codebase/luban/luban-h5-dist/front-end/;
73 78 #try_files $uri $uri/ /index.html;
... ...