You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transformer is called after the `index.html` is fetched from the CDN and before it is cached. The cache duration
213
+
is controlled by the [`IndexHtmlDefaultCacheDuration`](/bff/fundamentals/options.md#cdn--static-assets) option.
214
+
187
215
### Proxying All Static Assets
188
216
189
217
When developing a Single-Page Application (SPA), it's very common to use a development webserver such as Vite. While Vite can publish static assets with a base URL, this doesn't work well during development.
****AutomaticallyRegisterBffMiddleware*** (added in 4.0)
50
50
51
-
When applying BFF V4 multiple frontends, a lot of middlewares get automatically added to the pipeline. For example, the frontend selection middleware, the authentication handlers, etc. If you don't want this automatic behavior, then you can turn it off and register these middlewares manually.
51
+
When using BFF V4 with multiple frontends, several middlewares are automatically added to the pipeline (frontend
52
+
selection, path mapping, OpenID Connect callbacks, management endpoints, and static file proxying). If you need
53
+
full control over the middleware pipeline, set this to `false` and register the middleware manually:
54
+
55
+
```csharp
56
+
builder.Services.AddBff(options=>
57
+
{
58
+
options.AutomaticallyRegisterBffMiddleware=false;
59
+
});
60
+
```
61
+
62
+
Whendisabled, youmustcall `UseBffPreProcessing()` earlyinthepipeline (beforeauthentication) and
0 commit comments