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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00