G
G
Georgy Kuznetsov2021-11-29 15:29:02
ASP.NET
Georgy Kuznetsov, 2021-11-29 15:29:02

How to run React page from ASP.NET project?

Let's say there is an ASP.NET project with the following content:
61a4c72423ec7647806844.png

How can I run a React page through IIS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-11-29
@vabka

You already have UseStaticFiles, so that should work.
"page on react" is launched in the browser, so the server only needs to distribute files.
https://docs.microsoft.com/en-us/aspnet/core/funda...
Why JsEngineSwitcher and AddReact xs. You can just distribute statics on the IIS side without straining the backend (or you can live without IIS at all - why pay a lot of money for an nginx Windows license)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question