Skip to content

Commit

Permalink
feat: env wallet project id
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto0627 committed Apr 28, 2024
1 parent ae84b3c commit c400495
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ghpage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ jobs:
cache: pnpm

- name: Install dependencies
run: pnpm install

run: pnpm install
steps:
- name: Set WalletConnect Project ID
with:
NEXT_PUBLIC_PROJECT_ID: ${{secrets.NEXT_PUBLIC_PROJECT_ID}}
env:
NEXT_PUBLIC_PROJECT_ID: ${{secrets.NEXT_PUBLIC_PROJECT_ID}}
- name: Build my App
run: pnpm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down
95 changes: 94 additions & 1 deletion apps/web/public/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apps/web/public/swe-worker-5c72df51bb1f6ee0.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/src/utils/config/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { mainnet, sepolia, goerli, optimism } from "wagmi/chains";

// Get projectId at https://cloud.walletconnect.com
export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID;

console.log(projectId)
if (!projectId) throw new Error("Project ID is not defined");

const metadata = {
Expand Down

0 comments on commit c400495

Please sign in to comment.