Skip to content
Docs Try Aspire

withStaticFiles

Function
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
interface YarpResource {
// ... omitted for brevity
withStaticFiles(): YarpResource;
}

Signature

method withStaticFiles builder
Enables static file serving in the YARP resource. Static files are served from the wwwroot folder.
withStaticFiles(): YarpResource
YarpResource

Applies to

This function is an extension method on the following types: