From e9070a656bfbb194a89355adfcb3afb04f182a93 Mon Sep 17 00:00:00 2001 From: Philzen Date: Tue, 7 Jan 2025 21:19:10 +0100 Subject: [PATCH] Prefer link to loadEnvFiles in @redwood/cli-helpers, anticipating #11885 --- docs/versioned_docs/version-8.4/environment-variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/versioned_docs/version-8.4/environment-variables.md b/docs/versioned_docs/version-8.4/environment-variables.md index 34ad77b8f06d..ee28d8d319fd 100644 --- a/docs/versioned_docs/version-8.4/environment-variables.md +++ b/docs/versioned_docs/version-8.4/environment-variables.md @@ -137,10 +137,10 @@ yarn-error.log For all the variables in your `.env` and `.env.defaults` files to make their way to `process.env`, there has to be a call to `dotenv`'s `config` function somewhere. So where is it? -It's in [the CLI](https://github.com/redwoodjs/redwood/blob/v8.4.2/packages/cli/src/lib/loadEnvFiles.js#L38-L44)—every time you run a `yarn rw` command: +It's in [the CLI](https://github.com/redwoodjs/redwood/blob/v8.4.2/packages/cli-helpers/src/lib/loadEnvFiles.ts#L35-L43)—every time you run a `yarn rw` command: -```jsx title="packages/cli/src/lib/loadEnvFiles.js" -export function loadDefaultEnvFiles(cwd) { +```ts title="packages/cli/src/lib/loadEnvFiles.js" +export function loadDefaultEnvFiles(cwd: string) { dotenvDefaultsConfig({ path: path.join(cwd, '.env'), defaults: path.join(cwd, '.env.defaults'),