Skip to content

Commit

Permalink
feat(keycloak): add conditional for null project (local)
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed May 25, 2020
1 parent ffeda7f commit 785d4e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ app.prepare().then(() => {
})
);

// Keycloak for dev/test/prod
const kcNamespace = namespaceMap[process.env.PROJECT] || '-dev';
// Keycloak instantiation for dev/test/prod
const kcNamespace = process.env.PROJECT
? namespaceMap[process.env.PROJECT]
: '-dev';
const kcConfig = {
realm: 'pisrwwhx',
'auth-server-url': `https://sso${kcNamespace}.pathfinder.gov.bc.ca/auth`,
Expand Down

0 comments on commit 785d4e4

Please sign in to comment.