Skip to content

Commit 062ce6a

Browse files
authored
add dotenvx with sandbox usage (#8256)
1 parent 3d02111 commit 062ce6a

File tree

1 file changed

+4
-0
lines changed
  • src/pages/[platform]/deploy-and-host/fullstack-branching/secrets-and-vars

1 file changed

+4
-0
lines changed

src/pages/[platform]/deploy-and-host/fullstack-branching/secrets-and-vars/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,7 @@ console.log('REACT_APP_TEST_VARIABLE', process.env.REACT_APP_TEST_VARIABLE);
159159
### Local environment
160160

161161
When working on your local machine, you must manually load the sandbox's environment variables. First, add the environment variable in your `.env.local` file. Then, a library such as [`@dotenvx/dotenvx`](https://www.npmjs.com/package/@dotenvx/dotenvx) can load the environment variables, which you can then reference with `process.env`.
162+
163+
```bash title="Terminal" showLineNumbers={false}
164+
npx dotenvx run --env-file=.env.local -- ampx sandbox
165+
```

0 commit comments

Comments
 (0)