Skip to content

Commit

Permalink
chore: check if isLagoon is evaluated when setting up oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed Oct 18, 2023
1 parent 21b77b3 commit 130be6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/publisher.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineConfig({
},
databaseUrl: 'persisted-store/publisher.sqlite',
publisherPort: isLagoon ? 3000 : 8000,
oAuth2: isLagoon ? {
oAuth2: {
clientId: process.env.PUBLISHER_OAUTH2_CLIENT_ID || 'publisher',
clientSecret: process.env.PUBLISHER_OAUTH2_CLIENT_SECRET || 'publisher',
sessionSecret: process.env.PUBLISHER_OAUTH2_SESSION_SECRET || 'banana',
Expand All @@ -46,5 +46,5 @@ export default defineConfig({
tokenPath: '/oauth/token',
authorizePath: '/oauth/authorize?response_type=code',
grantType: 0,
} : undefined,
},
});

0 comments on commit 130be6c

Please sign in to comment.