Skip to content

Commit

Permalink
docs: Updated environment variables guide
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Sep 28, 2024
1 parent 4ec1967 commit 8e7c3c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guides/use-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ export function registerShell(env: Environment) {
}
```

### Register variables

Then, update the `registerShell` function to register the `apiBaseUrl` environment variable based on the provided `env` argument:

```ts !#41-44 shell/src/register.tsx
Expand Down Expand Up @@ -517,6 +519,8 @@ export function registerShell(env: Environment) {
}
```

### Module augmentation

Then, augment the `EnvironmentVariables` TypeScript interface to include the `apiBaseUrl` variable:

```ts !#6 shell/types/env-vars.d.ts
Expand Down

0 comments on commit 8e7c3c1

Please sign in to comment.