I have deployed my frontend react application to Azure Static web apps.
I have configured the environment variable in the Azure Environment variables section. However when I visit the website, The console returns 404 not found with /undefined/api/my api end point
Here is how i handle my api url in my code:
const apiUrl = process.env.REACT_APP_API_URL;
And in azure i did this:
Name: REACT_APP_API_URL
Value: My api url
