In .NET 9 is new feature Static assets.
You can replace UseStaticFiles to MapStaticAssets. But it is only part of this feature.
The main goal is to use fingerprinting and generated .gz and .br assets (with .staticwebassets.endpoints.json in debug enviroment).
You can use new @assets property (In Blazor apps) or link tag helpers (MVC & Razor Pages apps) to resolve the assets fingerprinted file names and <ImportMap /> component or <script type="importmap"></script> for JavaScript modules. There is no such functionality for DotVVM apps.
It needs to be added in DotVVM resources registration in UrlResourceLocation or similar class.
Please add this support.