Something went wrong. Try again.
A lightweight fork of Quenti, the popular open-source alternative to Quizlet, with a reduced scope in mind.
Something went wrong. Try again.
1234567891011121314151617export const env = { PORT: Number(process.env.PORT ?? 3001), APP_URL: process.env.APP_URL ?? "http://localhost:3001", WEB_URL: process.env.WEB_URL ?? "http://localhost:5173", DATABASE_URL: process.env.DATABASE_URL ?? "./quenti.db", // Local monorepo dev runs with cwd=apps/api, so the default reaches // packages/db/migrations from there. The Docker image overrides this to // an absolute path (see Dockerfile) since it isn't a checkout of the // monorepo layout. MIGRATIONS_DIR: process.env.MIGRATIONS_DIR ?? "../../packages/db/migrations", DISABLE_REGISTRATION: process.env.DISABLE_REGISTRATION === "true", // All AI features (set creation from text/PDF, answer explanations, etc.) // are disabled unless this is set — no external AI calls happen otherwise. OPENROUTER_API_KEY: process.env.OPENROUTER_API_KEY ?? "", OPENROUTER_MODEL: process.env.OPENROUTER_MODEL ?? "google/gemini-2.5-flash",};