From 8e7c3c13c37d6452768446cb9a4f8d4c53f7f51e Mon Sep 17 00:00:00 2001 From: patricklafrance Date: Sat, 28 Sep 2024 13:36:58 -0400 Subject: [PATCH] docs: Updated environment variables guide --- docs/guides/use-environment-variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guides/use-environment-variables.md b/docs/guides/use-environment-variables.md index 086567e68..3da6fa226 100644 --- a/docs/guides/use-environment-variables.md +++ b/docs/guides/use-environment-variables.md @@ -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 @@ -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