Update stuff
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { query } from './_generated/server';
|
||||
|
||||
const hasEnv = (name: string) => Boolean(process.env[name]?.trim());
|
||||
|
||||
export const envStatus = query({
|
||||
args: {},
|
||||
handler: () => ({
|
||||
auth: {
|
||||
authentikId: hasEnv('AUTH_AUTHENTIK_ID'),
|
||||
authentikSecret: hasEnv('AUTH_AUTHENTIK_SECRET'),
|
||||
authentikIssuer: hasEnv('AUTH_AUTHENTIK_ISSUER'),
|
||||
githubId: hasEnv('AUTH_GITHUB_ID') || hasEnv('GITHUB_APP_CLIENT_ID'),
|
||||
githubSecret:
|
||||
hasEnv('AUTH_GITHUB_SECRET') || hasEnv('GITHUB_APP_CLIENT_SECRET'),
|
||||
jwtPrivateKey: hasEnv('JWT_PRIVATE_KEY'),
|
||||
jwks: hasEnv('JWKS'),
|
||||
siteUrl: hasEnv('SITE_URL'),
|
||||
},
|
||||
githubApp: {
|
||||
appId: hasEnv('GITHUB_APP_ID'),
|
||||
privateKey: hasEnv('GITHUB_APP_PRIVATE_KEY'),
|
||||
installationId: hasEnv('GITHUB_APP_INSTALLATION_ID'),
|
||||
},
|
||||
email: {
|
||||
useSendApiKey: hasEnv('USESEND_API_KEY'),
|
||||
useSendUrl: hasEnv('USESEND_URL'),
|
||||
useSendFromEmail: hasEnv('USESEND_FROM_EMAIL'),
|
||||
},
|
||||
spoon: {
|
||||
encryptionKey: hasEnv('SPOON_ENCRYPTION_KEY'),
|
||||
workerToken: hasEnv('SPOON_WORKER_TOKEN'),
|
||||
},
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user