Skip to content

Commit

Permalink
chore: configurable secure url (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaisailovic committed Mar 29, 2024
1 parent b59d023 commit 1f02a36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
default: false
required: false
type: boolean
secure-site-url:
description: 'Secure site SDK url'
default: 'https://secure.walletconnect.com/sdk'
required: false
type: string
secrets:
NEXT_PUBLIC_PROJECT_ID:
required: true
Expand Down Expand Up @@ -83,6 +88,7 @@ jobs:
SKIP_PLAYWRIGHT_WEBSERVER: ${{ inputs.skip-playwright-webserver }}
NEXTAUTH_SECRET: ${{ secrets.TESTS_NEXTAUTH_SECRET }}
MAILSAC_API_KEY: ${{ secrets.TESTS_MAILSEC_API_KEY }}
NEXT_PUBLIC_SECURE_SITE_SDK_URL: ${{ inputs.secure-site-url }}
CI: true
working-directory: ./apps/laboratory/
run: npm run ${{ inputs.command }}
Expand Down
1 change: 1 addition & 0 deletions apps/laboratory/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ NEXTAUTH_SECRET=""
MAILSAC_API_KEY=""
# Only needed when overriding default next-auth URL
# NEXTAUTH_URL=""
NEXT_PUBLIC_SECURE_SITE_SDK_URL=""
3 changes: 2 additions & 1 deletion packages/wallet/src/W3mFrameConstants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const W3mFrameConstants = {
SECURE_SITE_SDK: 'https://secure.walletconnect.com/sdk',
SECURE_SITE_SDK:
process.env['NEXT_PUBLIC_SECURE_SITE_SDK_URL'] || 'https://secure.walletconnect.com/sdk',
APP_EVENT_KEY: '@w3m-app/',
FRAME_EVENT_KEY: '@w3m-frame/',
RPC_METHOD_KEY: 'RPC_',
Expand Down

0 comments on commit 1f02a36

Please sign in to comment.