Skip to content

Commit

Permalink
Improve SNAP_ORIGIN documentation (MetaMask#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardBraham authored Aug 29, 2023
1 parent b5146ce commit 504e344
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/site/.env.production.dist
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=
4 changes: 4 additions & 0 deletions packages/site/src/config/snap.ts
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`;

0 comments on commit 504e344

Please sign in to comment.