Serve SPA (React) in ASP.NET web API
Is it a correct way to serve SPA in ASP.NET Web API project? Is there a better way to do it? The way I do it is to move React built to wwwroot and add lines to
useStaticFiles
and MapFallbackToFile
to index.html
Program.cs
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237861794886975498/image.png)
0 Replies