Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
303 B
Raw Blame
import { existsSync } from "fs";
import { resolve } from "path";
import { config } from "dotenv";

const envCandidates = [".env.worktree", ".env"];

for (const filename of envCandidates) {
  const path = resolve(process.cwd(), filename);
  if (existsSync(path)) {
    config({ path });
    break;
  }
}