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:
2026-02-27 17:26:05 -08:00
parent 3ce72b69e5
commit 8a83b67013
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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: