import { Env } from "./types/env"; export function pullEnv(): Env { return { server: { nextPort: process.env.NEXT_PORT as string, externalPort: process.env.SERVER_EXTERNAL_PORT as string, sessionCookieName: process.env.SESSION_COOKIE_NAME as string, resourceSessionCookieName: process.env.RESOURCE_SESSION_COOKIE_NAME as string }, app: { environment: process.env.ENVIRONMENT as string, version: process.env.APP_VERSION as string }, email: { emailEnabled: process.env.EMAIL_ENABLED === "true" ? true : false }, flags: { disableUserCreateOrg: process.env.DISABLE_USER_CREATE_ORG === "true" ? true : false, disableSignupWithoutInvite: process.env.DISABLE_SIGNUP_WITHOUT_INVITE === "true" ? true : false, emailVerificationRequired: process.env.FLAGS_EMAIL_VERIFICATION_REQUIRED === "true" ? true : false } }; }