forked from
samuel.fm/statusphere-react
the statusphere demo reworked into a vite/react app in a monorepo
1import dotenv from 'dotenv'
2import { cleanEnv, host, 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: '127.0.0.1' }),
12 PORT: port({ devDefault: 3001 }),
13 VITE_PORT: port({ default: 3000 }),
14 DB_PATH: str({ devDefault: ':memory:' }),
15 COOKIE_SECRET: str({ devDefault: '0'.repeat(32) }),
16 SERVICE_DID: str({ default: undefined }),
17 PUBLIC_URL: str({ devDefault: '' }),
18 JETSTREAM_INSTANCE: str({ default: 'wss://jetstream2.us-east.bsky.network' }),
19})