0
votes

My Web App Service running on Linux serves a React App which is has its build files in wwwroot, served using a pm2 process that runs npx serve:

ecosystem.config.js

module.exports = {
  apps: [
    {
      script: "npx serve -s",
    },
  ],
};

This worked fine until serve randomly started serving the entire /home directory instead of the index.html file in the wwwroot. This is what the web page in the browser looks like now.

enter image description here

The pm2 process seems to be running fine.

enter image description here

Any ideas?

1

1 Answers

0
votes

We had a bunch of sites go down today or this weekend with same issue. I have a ticket in with M$ to understand why, but we were able to temporarily fix by using the startup command option in azure.

App Service Configuration