Deploy to IIS with the a React front end #1260
Replies: 2 comments 2 replies
-
Hi @stijnvddonk Steps to Deploy a React Application to IIS
2.Upload the Build to the Server
3.Configure the IIS Site
4.Set the Default Document
5.Configure URL Rewrite Rules (for Single Page Application)
6.Test the Application
With these steps, your React front end should be accessible through IIS. Let me know if you encounter any issues! |
Beta Was this translation helpful? Give feedback.
-
My current setup is as follows: a root folder with the react app contents in there. Also a folder called api is in there where i've placed all the published files from the dotnet application. The web.config file in the root directory looks as follows:
</system.webServer> and the web.config in the api folder is the default config created on publish. The api folder is then converted to a application in IIS. When this is started i can reach the front end and i can make API calls. |
Beta Was this translation helpful? Give feedback.
-
All,
How would i go about deploying the application to IIS on a server when using the React front end?
I've never done this before and am struggling to set it up.
I've uploaded the full build output to the server and linked this to a IIS Site but i don't know how to link the front end afterwards.
Any help please?
Beta Was this translation helpful? Give feedback.
All reactions