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,