Skip to content

Commit

Permalink
make peers and cluster name enviroment varaiable accessible to Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Hafez committed Apr 12, 2024
1 parent 7a3e8f0 commit 2e30dad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .docker_env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_ENV=development
CADENCE_CLUSTERS_NAMES=default
NEXT_PUBLIC_CADENCE_CLUSTERS_NAMES=default
CADENCE_GRPC_PEERS="127.0.0.1:7833"
CADENCE_GRPC_SERVICES_NAMES=cadence-frontend
NEXT_PUBLIC_CADENCE_GRPC_SERVICES_NAMES=cadence-frontend
CADENCE_WEB_PORT=8088
CADENCE_EXTERNAL_SCRIPTS=""
ENABLE_AUTH=false
Expand Down
2 changes: 1 addition & 1 deletion src/config/clusters/cluster-names.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const envClusterNames = process.env.CADENCE_CLUSTERS_NAMES;
const envClusterNames = process.env.NEXT_PUBLIC_CADENCE_CLUSTERS_NAMES;

const CLUSTER_NAMES: Array<string> = envClusterNames ? envClusterNames.split(',').filter((c) => Boolean(c.trim())).map((c) => c.trim()) : ['default'];

Expand Down
2 changes: 1 addition & 1 deletion src/config/grpc/grpc-services-names.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const envServicesNames = process.env.CADENCE_GRPC_SERVICES_NAMES;
const envServicesNames = process.env.NEXT_PUBLIC_CADENCE_GRPC_SERVICES_NAMES;
const GRPC_SERVICES_NAMES = envServicesNames ? envServicesNames.split(',').filter((s) => Boolean(s.trim())).map((s) => s.trim()) : ['cadence-frontend'];


Expand Down

0 comments on commit 2e30dad

Please sign in to comment.