Files
authentik/web/packages/core/environment/load/node.js
Teffen Ellis 232f52b349 web/e2e: Playwright end-to-end test runner (#16014)
* web: Flesh out Playwright.

web: Flesh out slim tests.

* web/e2e: Sessions

* web: Update tests.

* web: Fix missing git hash when using docker as backend.

* Fix selectors.

* web: Flesh out a11y in wizard elements.

* web: Flesh out provider tests.
2025-08-26 17:09:00 +00:00

19 lines
500 B
JavaScript

/**
* @file Load the contents of an environment file into `process.env`.
*/
import { MonoRepoRoot } from "#paths/node";
import { existsSync } from "node:fs";
import { join } from "node:path";
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);
}
}