adding env variable support

This commit is contained in:
Gabriel mermelstein 2024-06-12 13:55:00 +02:00
parent a754e731ae
commit 3cd69f2451
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -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() {