I am working with Blazor Wasm on .NET 8. I am attempting to publish my app to the dev server and QA server for the first time. I am running into an issue where all my API calls are failing. Looking at the network trace, I can see that my base url for the API is being cut off.
My base url is something like this :
"BaseFakeApiUrl": "https://dev.FakeSite.com/IisSiteName"So in this example the /IisSiteName is being cut off. I did make changes to the url (added a 2 to FakeSite) to verify I am in the right file and I am. I also tried adding a / after IisSiteName.
I am at a loss as to why the iis site name is being cut off, any guidance would be appreciated.
Edit: I noticed that appsettings.json shows in my network trace, first it shows appsettings.development.json and checking the preview it has the correct url set for the base url. Then it loads appsettings.json which did not. I changed it so that it does have the correct url which is reflected in my network trace but the API call is still missing the IIS Site Name