microsoft / microsoft/aspire

Yarp static files proxying does not support handling 404s

Open
#11,456 1 comment 2 reactions 0 assignees View on GitHub
area-integrations yarp
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

When using the Yarp resource to proxy over static files, the proxy doesn't handle falling back to the designated 404.html page when a route fails to resolve.

We might have to figure out how to configure a rule for it on the Aspire side or update the Yarp proxy itself to handle redirecting to `404.html` instead of returnin the status code when the `USE_STATIC_FILES` flag is enabled.

Contributor guide

Open the contributing guide

Research direction

Start at the Yarp resource path used with USE_STATIC_FILES and trace how an unresolved route is handled. Determine whether Aspire configuration can select 404.html or whether the Yarp proxy must redirect; done means unresolved static-file routes reach the designated 404.html page.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.