SpaApplicationBuilderExtensions Class


Provides extension methods used for configuring an application to host a client-side Single Page Application (SPA).

public ref class SpaApplicationBuilderExtensions abstract sealed
public static class SpaApplicationBuilderExtensions
type SpaApplicationBuilderExtensions = class
Public Module SpaApplicationBuilderExtensions


UseSpa(IApplicationBuilder, Action<ISpaBuilder>)

Handles all requests from this point in the middleware chain by returning the default page for the Single Page Application (SPA).

This middleware should be placed late in the chain, so that other middleware for serving static files, MVC actions, etc., takes precedence.

Applies to