Skip to content

Commit a4f42b0

Browse files
authored
Ng/connect debug (#270)
1 parent 2265dce commit a4f42b0

File tree

6 files changed

+873
-149
lines changed

6 files changed

+873
-149
lines changed

apps/connect/.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ VITE_HYPERGRAPH_CHAIN="geo-testnet"
33
VITE_HYPERGRAPH_API_URL="https://hypergraph-v2-testnet.up.railway.app/graphql"
44
VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-test-zc16z3tcvf.t.conduit.xyz"
55
VITE_PRIVY_APP_ID="cmbhnmo1x000bla0mxudtd8z9"
6+
VITE_PRIVY_PROVIDERS="development"
67
# VITE_HYPERGRAPH_CHAIN="geogenesis"
78
# VITE_HYPERGRAPH_API_URL="https://hypergraph-v2.up.railway.app/graphql"
89
# VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-genesis-h0q2s21xx8.t.conduit.xyz"

apps/connect/.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ VITE_HYPERGRAPH_SYNC_SERVER_ORIGIN="https://syncserver.hypergraph.thegraph.com"
22
VITE_HYPERGRAPH_CHAIN="geo-testnet"
33
VITE_HYPERGRAPH_API_URL="https://hypergraph-v2-testnet.up.railway.app/graphql"
44
VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-test-zc16z3tcvf.t.conduit.xyz"
5-
VITE_PRIVY_APP_ID="cmcccikza007bjy0niawgutl0"
5+
VITE_PRIVY_APP_ID="cmcccikza007bjy0niawgutl0"
6+
VITE_PRIVY_PROVIDERS="production"

apps/connect/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"prettier-plugin-tailwindcss": "^0.6.13",
4545
"tailwindcss": "^4.1.10",
4646
"unplugin-fonts": "^1.3.1",
47+
"vite-plugin-node-polyfills": "^0.23.0",
4748
"vite-plugin-svgr": "^4.3.0"
4849
}
4950
}

apps/connect/src/Boot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function Boot() {
4949
<PrivyProvider
5050
appId={import.meta.env.VITE_PRIVY_APP_ID}
5151
config={{
52-
loginMethods: ['email', 'google'],
52+
loginMethods: import.meta.env.VITE_PRIVY_PROVIDERS === 'development' ? ['email', 'google'] : ['email'],
5353
appearance: {
5454
theme: 'light',
5555
accentColor: '#6833ff',

apps/connect/vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { TanStackRouterVite } from '@tanstack/router-plugin/vite';
44
import react from '@vitejs/plugin-react';
55
import unfonts from 'unplugin-fonts/vite';
66
import { defineConfig } from 'vite';
7+
import { nodePolyfills } from 'vite-plugin-node-polyfills';
78
import svgr from 'vite-plugin-svgr';
89

910
// https://vitejs.dev/config/
@@ -12,6 +13,13 @@ export default defineConfig({
1213
port: 5180,
1314
},
1415
plugins: [
16+
nodePolyfills({
17+
protocolImports: true,
18+
globals: {
19+
Buffer: true,
20+
},
21+
include: ['buffer'],
22+
}),
1523
TanStackRouterVite(),
1624
react(),
1725
tailwindcss(),

0 commit comments

Comments
 (0)