Hi @André garcia
I understand the issues you are having, have you considered using Azure Static Web Apps (https://learn.microsoft.com/en-us/azure/static-web-apps/overview). See the quick start for a tutorial that will guide you through setting up a react app.
Quick Start: Building your first static site with Azure Static Web Apps (https://learn.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=react)
Best regards,