-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc
Description
Description
Section speaking of here:
https://learn.microsoft.com/de-de/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0#serve-files-outside-wwwroot-by-updating-iwebhostenvironmentwebrootpath
in this part right below the sample code block it is introducing that the wwwroot would only be used in Development, but nothing in the code sample its speaking of, does actually have a if block to make it do that.
In the preceding code, requests to
/:
- In the development environment return
wwwroot/Index.html- In any environment other than development return
wwwroot-custom/Index.html
Page URL
https://learn.microsoft.com/de-de/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/static-files.md
Document ID
3fec6e08-fc99-7a5c-796f-3f2347cad891
Platform Id
5c42c2c8-be1b-60de-8cde-f9b8d8c24f5f
Article author
Metadata
- ID: d47f38e2-bc36-cfb8-b0cc-17a534689f8b
- PlatformId: 5c42c2c8-be1b-60de-8cde-f9b8d8c24f5f
- Service: aspnet-core
- Sub-service: fundamentals
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc