mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
* core: Bump packages. * Bump Live Reload dependencies. * Bump tsconfig. * Bum ESLint config deps. Fix formatting. * Bump Prettier deps. Fix ESlint config. * Bump live reload deps. Fix linter. * Bump website deps. * web: Update dependencies. Fix Playwright issues. * Fix deprecations. * Fix linter warnings. * Fix override, run audit. * Fix import path. * Tidy types. * Format. * Update ignore patterns. * Fix import path. * Update deps. Clean up workspace linting. * Update deps, options. * Hide icons in navbar. * Format. * Remove deprecated option. * Use relative packages. * Add scripts. Tidy. * Bump engines. * Clarify order. * Clarify order. Install base deps. * Format. * Fix stale user during tests. * Fix runtime errors. * Fix redirect during tests, UI change. * web: Fix danger button hover background color. * web: Adjust colors, padding. * web: Fix sidebar colors, padding. * Fix alignment. * Fix background contrast.
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
/**
|
|
* @file Load the contents of an environment file into `process.env`.
|
|
*/
|
|
|
|
import { existsSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
|
|
import { MonoRepoRoot } from "#paths/node";
|
|
|
|
const envFilePath = join(MonoRepoRoot, ".env");
|
|
|
|
if (existsSync(envFilePath)) {
|
|
console.debug(`Loading environment from ${envFilePath}`);
|
|
|
|
try {
|
|
process.loadEnvFile(envFilePath);
|
|
} catch (error) {
|
|
console.warn(`Failed to load environment from ${envFilePath}:`, error);
|
|
}
|
|
}
|