Skip to content

Instantly share code, notes, and snippets.

@ErwinSchillack
ErwinSchillack / _load-env 2.ts
Created November 4, 2025 09:05
Noter-up development scripts and helpers for PR #200
import fs from 'node:fs';
import path from 'node:path';
import dotenv from 'dotenv';
// repoRoot from apps/felix/scripts/*
const repoRoot = path.resolve(__dirname, '..', '..', '..');
const candidates = [
path.join(repoRoot, 'apps/felix/.env.local'),
path.join(repoRoot, 'apps/felix/.env'),