-
app.UseStaticFiles(); app.MapReverseProxy(); this enables application to serve static files in wwwroot on page load and YARP is not invoked even if the path matches. Ref #1712 . I have an index.html where I make a fetch of the same path such that the YARP is invoked and the response is captured in index.html. Is there any way to achieve this same functionality for all the route patterns configured in YARP settings? I tried app.UseRewriter() but YARP seems to get invoked instead of serving index.html. Used Order: 999 along with app.MapFallbackToFile("index.html"); and Rewriter, doesn't seem to work. Please let me know if I am missing something. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm afraid I don't understand what you are trying to achieve. Can you try explaining in more detail / with an example? |
Beta Was this translation helpful? Give feedback.
I'm afraid I don't understand what you are trying to achieve. Can you try explaining in more detail / with an example?
Do you want
UseStaticFiles
to not serve some files, and instead let YARP handle the request?