Hello @Rutika Khaire , we are sorry to hear you're facing this issue. How did you deploy your React app( VS code, Azure portal,etc)?
Also, did you setup any URL rewrite rules in your web.config file?
Here are a few possible solutions that might help you resolve the issue:
- Add a startup command in app service configuration (if using Linux ): You can add the following command in the startup command in app service configuration:
npm2 serve /home/site/wwwroot --no-daemon
To do this, follow these steps:
- Go to App Service.
- Navigate to Configuration.
- Click on General Settings.
- Add the above command in Start up command and click on save.
- Then restart the server.
- You can deploy your React app to Azure App Service using Visual Studio Code. Here are the steps:
- Open your project in Visual Studio Code.
- Go to Extensions and search for Azure App Service. Click on Install.
- Go to Azure App Service and sign in to your Azure Account.
- Select your Subscription
- Click on Deploy to Web App.
- Deploy your react app to Azure App Service
Hope that helps.
-Grace