Scratch space for learning atproto app development
1import dotenv from 'dotenv' 2import { cleanEnv, host, num, port, str, testOnly } from 'envalid' 3 4dotenv.config() 5 6export const env = cleanEnv(process.env, { 7 NODE_ENV: str({ 8 devDefault: testOnly('test'), 9 choices: ['development', 'production', 'test'], 10 }), 11 HOST: host({ devDefault: testOnly('localhost') }), 12 PORT: port({ devDefault: testOnly(3000) }), 13 PUBLIC_URL: str({}), 14 DB_PATH: str({ devDefault: ':memory:' }), 15 COOKIE_SECRET: str({ devDefault: '00000000000000000000000000000000' }), 16 COMMON_RATE_LIMIT_MAX_REQUESTS: num({ devDefault: testOnly(1000) }), 17 COMMON_RATE_LIMIT_WINDOW_MS: num({ devDefault: testOnly(1000) }), 18})