if (!process.env.POSTGREST_URL) throw new Error('Missing POSTGREST_URL env var'); if (!process.env.DISCORD_TOKEN) throw new Error('Missing DISCORD_TOKEN env var'); if (!process.env.AUTOMATION_USER_JWT) throw new Error('Missing AUTOMATION_USER_JWT env var'); const token = process.env.DISCORD_TOKEN! const postgrestUrl = process.env.POSTGREST_URL! const automationUserJwt = process.env.AUTOMATION_USER_JWT! export const configs: Config = { token, postgrestUrl, automationUserJwt, } export interface Config { token: string; postgrestUrl: string; automationUserJwt: string; }