withStaticFiles
Method
interface YarpResource { // ... omitted for brevity withStaticFiles(sourcePath?: string): YarpResource;}Signature
method
withStaticFilesbuilderEnables static file serving in the YARP resource.
withStaticFiles(sourcePath?: string): YarpResourceParameters
sourcePathstringoptionalReturns
YarpResourceApplies to
This method applies to the following types: