atproto pastebin service: https://plonk.li
at main 533 B view raw
1import dotenv from "dotenv"; 2import { cleanEnv, host, port, str, testOnly } from "envalid"; 3 4dotenv.config(); 5 6export const env = cleanEnv(process.env, { 7 PLONK_NODE_ENV: str({ 8 devDefault: testOnly("test"), 9 choices: ["development", "production", "test"], 10 }), 11 PLONK_HOST: host({ devDefault: testOnly("localhost") }), 12 PLONK_PORT: port({ devDefault: testOnly(3000) }), 13 PLONK_PUBLIC_URL: str({}), 14 PLONK_DB_PATH: str({ devDefault: ":memory:" }), 15 PLONK_COOKIE_SECRET: str({ devDefault: "00000000000000000000000000000000" }), 16});