Scratch space for learning atproto app development
1import dotenv from 'dotenv' 2import { cleanEnv, port, str, testOnly } from 'envalid' 3import { privateKeys } from '#/lib/envalid-private-keys' 4 5dotenv.config() 6 7export const env = cleanEnv(process.env, { 8 NODE_ENV: str({ 9 devDefault: testOnly('test'), 10 choices: ['development', 'production', 'test'], 11 }), 12 PORT: port({ devDefault: testOnly(3000) }), 13 PUBLIC_URL: str({}), 14 DB_PATH: str({ devDefault: ':memory:' }), 15 COOKIE_SECRET: str({ devDefault: '00000000000000000000000000000000' }), 16 PRIVATE_JWKS: privateKeys({ default: undefined }), 17})