How to set a default port for ASP.NET Core Angular app

后端 未结 4 1573
暖寄归人
暖寄归人 2021-01-01 18:45

I created a dotnet core project with the template ASP.NET Core with Angular using the dotnet CLI

dotnet new angular

Now, whenev

4条回答
  •  有刺的猬
    2021-01-01 19:16

    Generally speaking, you are correct, however I've seen a few other locations where this value might be overridden. One would be in the package.json, specifically in this block:

      "scripts": {
        "ng": "ng",
        "start": "ng serve --sourcemap --extractCss --host 0.0.0.0 --proxy-config proxy.config.json",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
      }
    

    Also you might check in a file called proxy.config.json if you have it

提交回复
热议问题