Files
authentik/web/packages/core/environment/load/node.js
Teffen Ellis a8e765257e web: Update Deprecated NPM Packages (#18335)
* 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.
2025-11-24 13:31:42 -05:00

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);
}
}