the statusphere demo reworked into a vite/react app in a monorepo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 512dacd9d25593ddba80c639e5ddcff9dfddb70e 18 lines 648 B view raw
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})