Open Closed

Configure Blazor Wasm after publishing moduled project. #10010


User avatar
0
samirmustafayev created

Hi Abp Team,

I am having trouble configuring the URL for the Blazor UI for Docker container after publishing. The situation is that after publishing, the container only works with the AppSelfUrl that was used while creating the project image. So, I tried the solution suggested in placing UseStaticFiles() before AbpMapStaticAssets(), but it did not solve the issue. I also tried adding BlazorEnableCompression to Blazor.Client.csproj to disable compression, but it also did not help. I used methods like UseStaticFilesForPatterns("appsettings*.json") and UseStaticFiles() with and without AbpMapStaticAssets().

What I want is to be able to change the configuration of the Blazor project after publishing. The project consists of multiple modules.


29 Answer(s)
  • User Avatar
    0
    samirmustafayev created

    But with change of configuration, does the localhost also should change in browse as entry point. You still using localhost:44336, instead of test.company:44336? Or am I misunderstanding?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Or am I misunderstanding?

    Basically, yes. The URL in appsettings.json is just a configuration and cannot change the URL and port that the running application is bound to.

    Thanks.

  • User Avatar
    0
    samirmustafayev created

    Thanks for responding. )))

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 30, 2025, 06:33