Skip to content
Docs Try Aspire
Docs Try

YarpResource.withStaticFiles

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpResource {
// ... omitted for brevity
withStaticFiles(sourcePath?: string): YarpResource;
}

Signature

method withStaticFiles builder
Enables static file serving in the YARP resource.
withStaticFiles(sourcePath?: string): YarpResource
sourcePath string optional
YarpResource

Defined on

This method is defined on the following type: