From 665cf937e003f2d211fa5a847839241e40ebf880 Mon Sep 17 00:00:00 2001 From: Shaun Orssaud <72015533+Shorssaud@users.noreply.github.com> Date: Fri, 27 Oct 2023 15:12:14 +0900 Subject: [PATCH] ADD codex url endpoint mapping --- docker-compose.yml | 2 ++ frontend/src/store.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 86082d7..6748159 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,3 +12,5 @@ services: image: codex-frontend-client ports: - "3000:80" + environment: + - CODEX_URL=http://loiujhaiuhailuhost:8080 diff --git a/frontend/src/store.ts b/frontend/src/store.ts index a96518c..e4f17e1 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -28,7 +28,7 @@ export const useDexyStore = create()( ftdCid: "", setFtdCid: (cid) => set({ ftdCid: cid }), nodeInfo: { - baseUrl: "http://localhost:8080", + baseUrl: process.env.CODEX_URL || "http://localhost:8080", nodeToConnectTo: null, id: null, // ip: null,