mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
manifests: rename VITE_BRIDGE_* env keys → BRIDGE_*
The runtime shim (window.__ENV / /__ENV.js) reads BRIDGE_* names from the container env at boot. The previous VITE_BRIDGE_* prefix only made sense when the build was Vite-time inlining the values, which is no longer the case (and was the bug behind manifest+runtime drift). One canonical name across compose+k8s+entrypoint.
This commit is contained in:
+5
-5
@@ -257,17 +257,17 @@ services:
|
||||
memory: 4G
|
||||
|
||||
# Bridge UI - Mainnet — Vite SPA (ghcr.io/hanzoai/spa serves /dist on :80).
|
||||
# VITE_BRIDGE_* env documents what the image was built with; the values
|
||||
# BRIDGE_* env documents what the image was built with; the values
|
||||
# become real only when baked at build time (app/bridge/Dockerfile).
|
||||
bridge-ui:
|
||||
image: ghcr.io/luxfi/bridge-ui:latest
|
||||
container_name: bridge-ui
|
||||
restart: always
|
||||
environment:
|
||||
- VITE_BRIDGE_API_HOST=https://bridge-api.lux.network
|
||||
- VITE_BRIDGE_ENV=mainnet
|
||||
- VITE_BRIDGE_CLIENT_ID=lux-bridge
|
||||
- VITE_BRIDGE_IAM_ORG=lux-network
|
||||
- BRIDGE_API_HOST=https://bridge-api.lux.network
|
||||
- BRIDGE_ENV=mainnet
|
||||
- BRIDGE_CLIENT_ID=lux-bridge
|
||||
- BRIDGE_IAM_ORG=lux-network
|
||||
ports:
|
||||
- "3001:80"
|
||||
networks:
|
||||
|
||||
+5
-5
@@ -209,17 +209,17 @@ services:
|
||||
retries: 3
|
||||
|
||||
# Bridge UI - Testnet — Vite SPA (ghcr.io/hanzoai/spa serves /dist on :80).
|
||||
# VITE_BRIDGE_* env documents what the image was built with; the values
|
||||
# BRIDGE_* env documents what the image was built with; the values
|
||||
# become real only when baked at build time (app/bridge/Dockerfile).
|
||||
bridge-ui:
|
||||
image: ghcr.io/luxfi/bridge-ui:latest
|
||||
container_name: bridge-ui
|
||||
restart: always
|
||||
environment:
|
||||
- VITE_BRIDGE_API_HOST=https://bridge-api-testnet.lux.network
|
||||
- VITE_BRIDGE_ENV=testnet
|
||||
- VITE_BRIDGE_CLIENT_ID=lux-bridge
|
||||
- VITE_BRIDGE_IAM_ORG=lux-network
|
||||
- BRIDGE_API_HOST=https://bridge-api-testnet.lux.network
|
||||
- BRIDGE_ENV=testnet
|
||||
- BRIDGE_CLIENT_ID=lux-bridge
|
||||
- BRIDGE_IAM_ORG=lux-network
|
||||
ports:
|
||||
- "3001:80"
|
||||
networks:
|
||||
|
||||
+4
-4
@@ -165,10 +165,10 @@ services:
|
||||
working_dir: /app/app/bridge
|
||||
environment:
|
||||
# Vite reads these at build/dev time (build-time inline + dev-server pickup).
|
||||
- VITE_BRIDGE_API_HOST=http://localhost:5000
|
||||
- VITE_BRIDGE_ENV=local
|
||||
- VITE_BRIDGE_CLIENT_ID=lux-bridge
|
||||
- VITE_BRIDGE_IAM_ORG=lux-network
|
||||
- BRIDGE_API_HOST=http://localhost:5000
|
||||
- BRIDGE_ENV=local
|
||||
- BRIDGE_CLIENT_ID=lux-bridge
|
||||
- BRIDGE_IAM_ORG=lux-network
|
||||
ports:
|
||||
- "3001:3001"
|
||||
networks:
|
||||
|
||||
@@ -351,7 +351,7 @@ spec:
|
||||
type: ClusterIP
|
||||
---
|
||||
# Bridge UI Deployment — Vite SPA served by ghcr.io/hanzoai/spa on :80.
|
||||
# VITE_BRIDGE_* env documents the build-time inlined config; for true
|
||||
# BRIDGE_* env documents the build-time inlined config; for true
|
||||
# per-env values the image is built with those VITE_* vars baked in.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -375,13 +375,13 @@ spec:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
env:
|
||||
- name: VITE_BRIDGE_API_HOST
|
||||
- name: BRIDGE_API_HOST
|
||||
value: https://bridge-api.lux.network
|
||||
- name: VITE_BRIDGE_ENV
|
||||
- name: BRIDGE_ENV
|
||||
value: mainnet
|
||||
- name: VITE_BRIDGE_CLIENT_ID
|
||||
- name: BRIDGE_CLIENT_ID
|
||||
value: lux-bridge
|
||||
- name: VITE_BRIDGE_IAM_ORG
|
||||
- name: BRIDGE_IAM_ORG
|
||||
value: lux-network
|
||||
resources:
|
||||
requests:
|
||||
|
||||
Reference in New Issue
Block a user