Skip to content

Commit d087fe3

Browse files
committed
add wc verification code
1 parent 0696549 commit d087fe3

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ vite.config.ts.timestamp-*
1111

1212
/artifacts
1313
/cache
14+
/static/.well-known

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "vite dev",
7+
"prebuild": "./scripts/wallet-verification-code.sh",
78
"build": "vite build",
89
"preview": "vite preview",
910
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",

scripts/wallet-verification-code.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
source .env
4+
5+
mkdir -p static/.well-known
6+
7+
if [ ! -f static/.well-known/walletconnect.txt ]; then
8+
touch static/.well-known/walletconnect.txt
9+
fi
10+
11+
echo $WALLET_CONNECT_VERIFICATION_CODE > static/.well-known/walletconnect.txt

0 commit comments

Comments
 (0)