Open Closed

Can not see config web build source Angular #1595


User avatar
0
thaithiendi created

Dear support team,

I use command "ng build --prod --base-href /HLVDMS/" build source to publish, but i can not see appsetting.production to updated api service link. where is it?

  • ABP Framework version: vX.X.X
  • UI type: Angular / MVC / Blazor
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    appsettings.production.json is a dotnet file and ng build is an Angular command. what's the correct result that you expect? can you give more details?

  • User Avatar
    0
    thaithiendi created

    I have two enviroments, UAT and PROD. I only see environment.prod.ts with config for PROD, and now i want to add environment.uat.ts with config for UAT. How can i do it correctly?

  • User Avatar
    0
    alper created
    Support Team Director

    this is an Angular issue (apart from abp.io) you can build your Angular project with a custom configuration name, and it'll use that environment

    yarn ng build --configuration=uat
    
    environment.uat.ts
    

    see https://angular.io/guide/build

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09