Skip to content

Commit

Permalink
Bugfix: envs are imported as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
runely committed Mar 29, 2021
1 parent 830c4a7 commit 3ecdad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ export default {
storeAuthStateInCookie: process.env.AUTH_STATE_IN_COOKIE === 'true' || false
},
userInfoUrl: process.env.AUTH_USER_INFO_URL || 'https://graph.microsoft.com/v1.0/me?$select=userPrincipalName,onPremisesSamaccountName,givenName,surname,displayName',
isMock: process.env.AUTH_IS_MOCK || process.env.REACT_APP_IS_MOCK || false,
isMock: (process.env.AUTH_IS_MOCK && process.env.AUTH_IS_MOCK === 'true') || (process.env.REACT_APP_IS_MOCK && process.env.REACT_APP_IS_MOCK === 'true') || false,
mockUser: process.env.AUTH_MOCK_USER ? JSON.parse(process.env.AUTH_MOCK_USER) : defaultMockUser
}

0 comments on commit 3ecdad9

Please sign in to comment.