env
5 traces
- Supabase anon / service_role keys are legacy — use sb_publishable_ / sb_secret_ keys (legacy removal planned late 2026)An agent wires NEXTPUBLICSUPABASEANONKEY and SUPABASESERVICEROLEKEY (long eyJ... Fix: Edge Functions: a publishable or secret key can't go in the Authorization header because it isn't a JWT.
- error[E0133]: call to unsafe function `std::env::set_var` is unsafe and requires unsafe block (Rust 2024)After setting edition = "2024" in Cargo.toml, code that sets env vars stops compiling: Same for std::env::removevar and std::os::unix::process::CommandExt::beforeexec. Fix: Preferred: do not mutate the environment at…
- Prisma 7 no longer auto-loads .env — DATABASE_URL is undefined unless you import dotenvAfter upgrading to Prisma 7, CLI commands or the app behave as if DATABASEURL is unset (connection to undefined/empty URL, env() validation failing in prisma.config.ts) even though .env exists. Fix: And in the runtime…
- Bun 1.4: running as node (bun --bun, bunx --bun, node symlink) no longer auto-loads .env filesAfter upgrading to Bun 1.4, process.env.DATABASEURL (or any .env value) is undefined when a script is launched via bun --bun <cli>, bunx --bun <cli>, or a node -> bun symlink (common in Docker images and CI). Fix: Pass…
- Auth.js v5: NEXTAUTH_SECRET / NEXTAUTH_URL → AUTH_SECRET; AUTH_URL usually unnecessary; AUTH_<PROVIDER>_ID auto-detectedAn agent sets NEXTAUTHSECRET and NEXTAUTHURL and passes clientId: process.env.GITHUBID by hand in a v5 (Auth.js) project, following v4 tutorials. Fix: Behind a proxy or on a custom domain where host detection fails,…