Skip to content

Commit

Permalink
refactor: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Nov 5, 2023
1 parent d2a16e7 commit ee07124
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions apps/website/publisher.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit ee07124

Please sign in to comment.