forked from MetaMask/template-snap-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SNAP_ORIGIN documentation (MetaMask#54)
- Loading branch information
1 parent
b5146ce
commit 504e344
Showing
2 changed files
with
7 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
/** | ||
* To use this, rename to `.env.production` and set the production SNAP_ORIGIN here | ||
*/ | ||
SNAP_ORIGIN= |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
/** | ||
* The snap origin to use. | ||
* Will default to the local hosted snap if no value is provided in environment. | ||
* | ||
* You may be tempted to change this to the URL where your production snap is hosted, but please | ||
* don't. Instead, rename `.env.production.dist` to `.env.production` and set the production URL | ||
* there. Running `yarn build` will automatically use the production environment variables. | ||
*/ | ||
export const defaultSnapOrigin = | ||
process.env.SNAP_ORIGIN ?? `local:http://localhost:8080`; |