React/Node.JS Web App works locally but not in Azure.

Juan Pocurull 0 Reputation points
2025-02-18T08:57:54.45+00:00

My Web App runs locally, but, once deployed to Azure, doesn't.

For example, I am trying to send a POST request to register a new user. Locally, this works perfectly and sends everything to the database, but doing so on the live Web App only returns a 404 error.

How can I resolve this? What do I need to check?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,080 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 14,080 Reputation points MVP
    2025-02-18T12:47:15.96+00:00

    Hello , Welcome to MS Q&A

    To effectively monitor the performance of a CDN in Azure Static Web Apps, you can utilize several methods:

    Raw Logs: Enable raw logs for your CDN to get detailed information about every request. These logs can be streamed to Azure Storage, Event Hubs, or Azure Log Analytics for further analysis.

    Metrics: Azure CDN provides key metrics such as Byte Hit Ratio, Request Count, Response Size, and Total Latency. These metrics help you understand the performance of your CDN.

    Alerts: Set up alerts for key metrics to be notified of any performance issues or anomalies.

    Azure Log Analytics: Use Azure Log Analytics to enable more metrics and gain deeper insights into your CDN performance.

    These tools and features will help you effectively monitor and troubleshoot the performance of your CDN in Azure Static Web Apps. For more detailed guidance, you can refer to the following resources:

    Please let me know if any further questions

    Kindly accept answer if it helps

    Thanks

    Deepanshu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.