Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One solution is to use ASP.NET Core's built-in support for client-side routing and serve the React apps as static files. This can be achieved by configuring the ASP.NET Core middleware to serve static files from a directory where the React apps are built.

To differentiate between the multiple React SPA apps, you can use different routes for each app. For example, you can serve the first app on the root route ("/") and the second app on a separate route ("/app2").

Another solution is to use a reverse proxy to forward requests to the appropriate React app. In this approach, you can configure the reverse proxy to inspect the request URL and route it to the appropriate app based on a predefined routing rule.

Overall, the approach you choose will depend on the specifics of your project and your requirements for scalability, performance, and maintainability.