mirror of
https://github.com/logos-messaging/logos-messaging-frontend.git
synced 2026-01-03 22:33:08 +00:00
service endpoint as environment variable
This commit is contained in:
parent
670db33eb3
commit
5966a1b87a
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "ferry-chat",
|
||||
"name": "waku-frontend",
|
||||
"version": "0.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ferry-chat",
|
||||
"name": "waku-frontend",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@radix-ui/react-dialog": "^1.0.5",
|
||||
|
||||
@ -43,7 +43,6 @@ interface CommunityMetadata {
|
||||
contentTopic: string;
|
||||
}
|
||||
|
||||
const SERVICE_ENDPOINT = "https://waku.whisperd.tech";
|
||||
const COMMUNITY_CONTENT_TOPIC_PREFIX = "/universal/1/community";
|
||||
|
||||
function App() {
|
||||
@ -58,7 +57,7 @@ function App() {
|
||||
CommunityMetadata[]
|
||||
>([]);
|
||||
const [communityName, setCommunityName] = useState("");
|
||||
const [apiEndpoint, setApiEndpoint] = useState(SERVICE_ENDPOINT);
|
||||
const [apiEndpoint, setApiEndpoint] = useState(import.meta.env.VITE_SERVICE_ENDPOINT);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const updateMessage = (e: any) => setNewMessage(e.target.value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user