mirror of
https://github.com/mauricioabh/arbpulse.git
synced 2026-07-28 08:07:43 +00:00
8c7127cfde
GET /api/debug/sentry, load .env.local for DSN, Playwright observability spec. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
import { existsSync } from "node:fs";
|
|
import { loadEnvFile } from "node:process";
|
|
|
|
for (const file of [".env.local", ".env"]) {
|
|
if (existsSync(file)) {
|
|
loadEnvFile(file);
|
|
break;
|
|
}
|
|
}
|