All files / src config.ts

0% Statements 0/8
0% Branches 0/8
100% Functions 0/0
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                             
if (process.env.PATREON_CLIENT_ID == undefined) {
	throw new Error('PATREON_CLIENT_ID is not defined.');
}

if (process.env.PATREON_CLIENT_SECRET == undefined) {
	throw new Error('PATREON_CLIENT_SECRET is not defined.');
}
 
if (process.env.SENTRY_DSN == undefined) {
	throw new Error('SENTRY_DSN is not defined.');
}

export const config = {
	patreon: {
		clientId: process.env.PATREON_CLIENT_ID,
		clientSecret: process.env.PATREON_CLIENT_SECRET,
	},
	sentry: {
		dsn: process.env.SENTRY_DSN,
		logLevel: process.env.SENTRY_LEVEL != undefined ? process.env.SENTRY_LEVEL : 'error',
	},
};