From 130be6c5a7739c15acd269f9fd085faba9a2d71f Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Wed, 18 Oct 2023 12:01:44 +0200 Subject: [PATCH] chore: check if isLagoon is evaluated when setting up oauth --- apps/website/publisher.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/website/publisher.config.ts b/apps/website/publisher.config.ts index e9f64048c..3d11dab60 100644 --- a/apps/website/publisher.config.ts +++ b/apps/website/publisher.config.ts @@ -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', @@ -46,5 +46,5 @@ export default defineConfig({ tokenPath: '/oauth/token', authorizePath: '/oauth/authorize?response_type=code', grantType: 0, - } : undefined, + }, });