Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
update SNAP_ORIGIN to GATSBY_SNAP_ORIGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
V00D00-child committed Nov 18, 2023
1 parent e04a653 commit 1d5b849
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/site-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Set snap origin
run: |
echo GATSBY_SNAP_ORIGIN=npm:@transeptor-labs/${{ github.event.repository.name }} >> .env.production
- name: Install Dependencies and Build
run: |
yarn install
yarn build
env:
GATSBY_PATH_PREFIX: ${{ github.event.repository.name }}
GATSBY_SNAP_ORIGIN: npm:@transeptor-labs/${{ github.event.repository.name }}
- name: Cache build artifacts
uses: actions/cache@v3
id: cache-build
Expand Down
1 change: 1 addition & 0 deletions packages/site/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GATSBY_SNAP_ORIGIN=local:http://localhost:8080
2 changes: 1 addition & 1 deletion packages/site/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SNAP_ORIGIN=npm:@transeptor-labs/smarthub-snap
GATSBY_SNAP_ORIGIN=npm:@transeptor-labs/smarthub-snap
4 changes: 3 additions & 1 deletion packages/site/src/config/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
* The snap origin to use.
* Will default to the local hosted snap if no value is provided in environment.
*/
console.log('defaultSnapOrigin', process.env.GATSBY_SNAP_ORIGIN)

Check failure on line 5 in packages/site/src/config/snap.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Build, Lint, and Test (16.x)

Insert `;`

Check failure on line 5 in packages/site/src/config/snap.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Build, Lint, and Test (18.x)

Insert `;`
export const defaultSnapOrigin =
process.env.SNAP_ORIGIN ?? `local:http://localhost:8080`;
process.env.GATSBY_SNAP_ORIGIN ?? `local:http://localhost:8080`;

Check failure on line 8 in packages/site/src/config/snap.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Build, Lint, and Test (16.x)

Delete `⏎`

Check failure on line 8 in packages/site/src/config/snap.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Build, Lint, and Test (18.x)

Delete `⏎`
1 change: 0 additions & 1 deletion packages/site/src/utils/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const connectSnap = async (
version: snapPackageInfo.version,
},
) => {
console.log('snap info:', snapId, params);
await getMMProvider().request({
method: 'wallet_requestSnaps',
params: {
Expand Down

0 comments on commit 1d5b849

Please sign in to comment.