79416948

Date: 2025-02-06 06:34:04
Score: 1.5
Natty:
Report link

I have created simple React App deployed to Azure Web App using Vs code, even I'm facing the same issue.

Firstly, Check the Kudu Console If the necessary files are deployed or not by using below URL.

https://<AzureWebName>.scm.canadacentral-01.azurewebsites.net/newui

enter image description here

If the files are not deployed correctly then redeploy it again.

Make sure to run the below command before deploying to Azure using VS Code.

npm run build

Follow the below steps to deploy the app to Azure.

enter image description here

I added below Startup Command in the configuration section of Azure Web App.

pm2 serve /home/site/wwwroot/build --no-daemon --spa

enter image description here

Azure Output:

enter image description here

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
Posted by: Aslesha Kantamsetti