Static files and Blazor start script section with CDN Url as parameter #34774
Labels
aspnet-core/svc
blazor/subsvc
Blazor
Source - Docs.ms
Docs Customer feedback via GitHub Issue
support-request
[EDIT by guardrex to fix the code formatting. @mariovh87 ... FYI ... it's triple-backticks above and below for code blocks in issue comments.]
Description
In a WebApp project, I need the static files in App.razor, including the Blazor startup section:
I want the CDN URL to be configurable via an environment variable in appsettings.json for production purposes.
How can this be done?
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/static-files?view=aspnetcore-9.0&source=docs#deliver-assets-with-map-static-assets-routing-endpoint-conventions
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/fundamentals/static-files.md
Document ID
25458428-030f-6acb-457e-1b4dfa722043
Article author
@guardrex
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: