thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
91 stars 14 forks source link

create defaults for auth0-cypress environment variables #165

Closed dagda1 closed 2 years ago

dagda1 commented 2 years ago

Motivation

When testing the @simulacrum/auth0-cypress package against a create-react-app package, it requires the auth0ClientSecret and auth0CookieSecret variables to be set in the cypress.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.

netlify[bot] commented 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

dagda1 commented 2 years ago

Was the console.dir intentional?

definitely not. cheers