Hi, I’ve recently deployed my site via Netlify and it has stopped the redirect to my Auth0 domain from working. When I was running the site locally (on localhost:3000) when I click Logon I was redirected correctly as follows: https://mems.eu.auth0.com/authorize? etc. etc.
Now my site is deployed via Netlify when I click Logon I am redirected incorrectly as follows: https://undefined/authorize? etc. etc.
I believe this is because of the way I have configured Auth0 to work on my site where I’m storing my Domain and Client Key in a .env file as follows:
REACT_APP_AUTH0_DOMAIN=MY_DOMAIN
REACT_APP_AUTH0_CLIENT_ID=MY_CLIENT_ID
As .env files are not synced up to GitHub where Netlify deploys from it is not picking up these settings. I have tried to fix this by manually adding the Domain and Client Key to Netlify as environmental variables as follows:
AUTH0_DOMAIN=MY_DOMAIN
AUTH0_CLIENT_ID=MY_CLIENT_ID
However, this hasn’t worked. Any ideas how best to fix this?