Skip to content

Commit

Permalink
chore: add info about "saving" to an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeflug committed Dec 20, 2023
1 parent ffbe906 commit cee94a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ environment variables and are not exported.

Variables are scoped to the current workspace/collection.

### How to "Save" values to an environment variable

The Insomnia plugin API does not have a way to save values directly to environment variables,
but with a workaround you can get a similar experience.

Simply create an environment variable that uses the "Variable" template tag as its value.
This allows you to access a saved variable by using the environment variable.

![Environment Variables](images/env-var.png)

## Troubleshooting
Open the Developer Tools in Insomnia and review the console logs sent by this plugin.
A log entry will appear for each variable that the plugin attempted to save.
Expand Down
Binary file added images/env-var.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cee94a9

Please sign in to comment.