From 3cd69f2451f62c66e26da2e020cfe29421d2bc0b Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Wed, 12 Jun 2024 13:55:00 +0200 Subject: [PATCH] adding env variable support --- src/App.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a00fb2c..8c02da5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -48,8 +48,7 @@ interface CommunityMetadata { contentTopic: string; } -// const SERVICE_ENDPOINT = process.env.API_ENDPOINT || "http://localhost:8645"; -const SERVICE_ENDPOINT = "http://localhost:8645"; +const SERVICE_ENDPOINT = import.meta.env.VITE_API_ENDPOINT || "http://localhost:8645"; const COMMUNITY_CONTENT_TOPIC_PREFIX = "/universal/1/community"; function App() {