From ee07124cc984c57c39c982870fbf7b9f1c80a71f Mon Sep 17 00:00:00 2001 From: Alex Tkachev Date: Sun, 5 Nov 2023 09:52:38 +0400 Subject: [PATCH] refactor: prettier --- apps/website/publisher.config.ts | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/apps/website/publisher.config.ts b/apps/website/publisher.config.ts index 0ef9bb61a..97564d1d9 100644 --- a/apps/website/publisher.config.ts +++ b/apps/website/publisher.config.ts @@ -36,15 +36,19 @@ export default defineConfig({ }, databaseUrl: '/tmp/publisher.sqlite', publisherPort: isLagoon ? 3000 : 8000, - oAuth2: isLagoon ? { - clientId: process.env.PUBLISHER_OAUTH2_CLIENT_ID || 'publisher', - clientSecret: process.env.PUBLISHER_OAUTH2_CLIENT_SECRET || 'publisher', - sessionSecret: process.env.PUBLISHER_OAUTH2_SESSION_SECRET || 'banana', - tokenHost: process.env.PUBLISHER_OAUTH2_TOKEN_HOST || 'http://127.0.0.1:8888', - environmentType: process.env.PUBLISHER_OAUTH2_ENVIRONMENT_TYPE || 'development', - scope: 'publisher', - tokenPath: '/oauth/token', - authorizePath: '/oauth/authorize?response_type=code', - grantType: 0, - } : undefined, + oAuth2: isLagoon + ? { + clientId: process.env.PUBLISHER_OAUTH2_CLIENT_ID || 'publisher', + clientSecret: process.env.PUBLISHER_OAUTH2_CLIENT_SECRET || 'publisher', + sessionSecret: process.env.PUBLISHER_OAUTH2_SESSION_SECRET || 'banana', + tokenHost: + process.env.PUBLISHER_OAUTH2_TOKEN_HOST || 'http://127.0.0.1:8888', + environmentType: + process.env.PUBLISHER_OAUTH2_ENVIRONMENT_TYPE || 'development', + scope: 'publisher', + tokenPath: '/oauth/token', + authorizePath: '/oauth/authorize?response_type=code', + grantType: 0, + } + : undefined, });