Serve multiple Angular apps from the same server with Nginx

前端 未结 6 943
臣服心动
臣服心动 2020-12-30 02:59

I\'m serving multiple angular apps from the same server block in Nginx. So in order to let the user browse directly to certain custom

6条回答
  •  别那么骄傲
    2020-12-30 03:25

    Try building you apps using --base.href=/projectx/ for example:

    ng build --base.href=/project1/
    ng build --base.href=/project2/
    ng build --base.href=/project3/
    

提交回复
热议问题