Skip to content

Commit 687033c

Browse files
committed
chore: add netlify deploy config
1 parent 94b5ce1 commit 687033c

File tree

4 files changed

+6240
-201
lines changed

4 files changed

+6240
-201
lines changed

apps/namadillo/netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
Cross-Origin-Embedder-Policy = "credentialless"
55
Cross-Origin-Opener-Policy = "same-origin"
66

7+
[build]
8+
base = "apps/namadillo"
9+
command = "yarn build && ./scripts/copy-config.sh"
10+
publish = "dist"

apps/namadillo/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
"test:ci": "jest",
6464
"test:watch-only": "yarn jest --watchAll=true",
6565
"e2e-test": "PLAYWRIGHT_BASE_URL=http://localhost:3000 yarn playwright test",
66-
"e2e-test:headed": "PLAYWRIGHT_BASE_URL=http://localhost:3000 yarn playwright test --project=chromium --headed"
66+
"e2e-test:headed": "PLAYWRIGHT_BASE_URL=http://localhost:3000 yarn playwright test --project=chromium --headed",
67+
"netlify:deploy": "netlify deploy",
68+
"netlify:deploy:prod": "netlify deploy --prod"
6769
},
6870
"browserslist": {
6971
"production": [
@@ -118,6 +120,7 @@
118120
"jest-fetch-mock": "^3.0.3",
119121
"jest-transformer-svg": "^2.0.2",
120122
"local-cors-proxy": "^1.1.0",
123+
"netlify-cli": "^23.11.1",
121124
"postcss": "^8.4.32",
122125
"tailwindcss": "^3.4.0",
123126
"ts-jest": "^29.2.5",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
DIST_DIR="dist"
4+
5+
cat > "$DIST_DIR/config.toml" <<EOL
6+
indexer_url = "https://indexer.mainnet.siuuu.click"
7+
rpc_url = "https://rpc.mainnet.siuuu.click"
8+
masp_indexer_url = "https://masp.mainnet.siuuu.click"
9+
EOL
10+
11+
echo "config.toml created in $DIST_DIR"

0 commit comments

Comments
 (0)