mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
fix: disable RainbowKit SSR and correct bridge-ui K8s env vars
RainbowKit with ssr:true crashes server render (WalletConnect tries localStorage on Node.js). K8s deployment had wrong env var name (NEXT_PUBLIC_API_URL) instead of NEXT_PUBLIC_BRIDGE_API, causing getBridgeSettings() to fail and UI to show "Bridge is loading..."
This commit is contained in:
@@ -66,7 +66,7 @@ const RainbowProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
],
|
||||
//@ts-expect-error "ignore chain type"
|
||||
chains: chains,
|
||||
ssr: true,
|
||||
ssr: false,
|
||||
autoConnect: true, // Automatically reconnect the wallet
|
||||
})
|
||||
|
||||
|
||||
+10
-4
@@ -319,14 +319,20 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: ui
|
||||
image: luxfi/bridge-ui:latest
|
||||
image: ghcr.io/luxfi/bridge-ui:latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
env:
|
||||
- name: NEXT_PUBLIC_API_URL
|
||||
value: http://bridge-server:3000
|
||||
- name: NEXT_PUBLIC_CHAIN_ENV
|
||||
- name: NEXT_PUBLIC_BRIDGE_API
|
||||
value: https://bridge-api.lux.network
|
||||
- name: NEXT_PUBLIC_BACKEND_API
|
||||
value: https://bridge-api.lux.network
|
||||
- name: NEXT_PUBLIC_IDENTITY_API
|
||||
value: https://bridge-api.lux.network
|
||||
- name: NEXT_PUBLIC_EXPLORER_API
|
||||
value: https://bridge-api.lux.network
|
||||
- name: NEXT_PUBLIC_NETWORK_NAME
|
||||
value: mainnet
|
||||
resources:
|
||||
requests:
|
||||
|
||||
Reference in New Issue
Block a user