React Static Web App not utilizing env values from Github Secrets or Azure Config
Hello,
I've been working all day to figure out why our app does not load in crucial environment variables. I have them assigned via our GitHub secrets for values such as REACT_APP_ ... etc etc.
We have four:
REACT_APP_API_URL
REACT_APP_SIGNALR_URL
REACT_APP_STRIPE_PUBLISHABLE_KEY
REACT_APP_GOOGLE_MAPS_API_KEY
I have triple checked both GitHub secrets and Azures Config as I know that React requires them during the npm build so we have them passed with our workflow. Still, the site is live and it's like they don't exist.
index.tsx:31 ``Google Maps JavaScript API error: ApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-project-map-error
util.js:39 ``Google Maps JavaScript API warning: NoApiKeys
^^^ this being an example of what shows when I visit. Any ideas if there is something wrong on the Azure deployment side?
Lastly, I do want to include that I have in fact also went through our codebase and standardized each call for the variables, there are no issues there and it does in fact build and deploy as intended locally.