Closed dagda1 closed 2 years ago
✔️ Deploy Preview for simulacrum canceled.
🔨 Explore the source changes: 191cddbb30cb0b9e9fd04c225d7bdb2df5a38713
🔍 Inspect the deploy log: https://app.netlify.com/sites/simulacrum/deploys/61dd65d7205d1a0008f5beec
Was the
console.dir
intentional?
definitely not. cheers
Motivation
When testing the @simulacrum/auth0-cypress package against a
create-react-app
package, it requires theauth0ClientSecret
andauth0CookieSecret
variables to be set in thecypress.env.json
file.They are not relevant when dealing with a SPA that renders in the client and is not calling an api that subsequently calls auth0.
Approach
Centralise how the config is loaded and supply default values for the server side specific environment variables.