-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= Environment variables | ||
|
||
To resolve an environment variable, js_of_ocaml will perform the | ||
following steps, in the given order: | ||
|
||
- If the variable was set at compile time with the [--setenv VAR] flag, return it. | ||
- If running nodejs and the variable is set in the process environment ([process.env]), return it. | ||
- If the variable is set in [globalThis.jsoo_env], return it. This can be used | ||
to set an environment variable inside a web-browser. | ||
- Return Not_found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters