When my application starts I want to have it create the sitemap.txt dynamically. Doing so requires I have the domain of the website which differs for the dev and production slots.
Is there a way to get this in Main()? I think logically that should be known by the system. But Blazor only has NavigationManager and that service appears to only be available in the context of a page.
If not, I can stuff the value into a singleton service when the first page loads and then have a BackgroundService create the files. Asking here to avoid all that.
Update: The specification for a sitemap.txt is here (along with the spec for sitemap.xml).