Posting solution here for others to find. Chris and I worked on this together today. There were two issues to address:
- How to make Env Vars included in Web build:
Here’s the documentation for adding variables – Redwood Environment Variables. There are three different options for Web. You only need to choose one. (And the last option only works for local dev.) - Adding Env Vars required for Auth0 (or other Auth providers):
Chris is using Auth0 in his project. The problem is that he used the first option to add Env Vars to Web, prefix withREDWOOD_ENV_
. However, the Env Vars for Auth0 in the Redwood Docs need to be used exactly as given, so the prefix won’t work. So he needed to use the option for "Whitelisting environment variables inredwood.toml
.