Loading packages/client/dev.env.example 0 → 100644 +8 −0 Original line number Diff line number Diff line # where the backend is located VITE_API_HOST=http://localhost:3000 # what homeserver hosts the matrix users VITE_MATRIX_HOST=aftermath.gg # what hostname does the element instance run on VITE_ELEMENT_HOST=https://chat.fediverse.events No newline at end of file packages/client/src/components/Chat/OpenChatButton.tsx +8 −2 Original line number Diff line number Diff line import { Badge, Button } from "@nextui-org/react"; import { Badge, Button, Link } from "@nextui-org/react"; import { useChatContext } from "../../contexts/ChatContext"; const OpenChatButton = () => { Loading @@ -11,7 +11,13 @@ const OpenChatButton = () => { color="danger" size="sm" > <Button>Chat</Button> <Button as={Link} href={import.meta.env.VITE_ELEMENT_HOST!} target="_blank" > Chat </Button> </Badge> ); }; Loading Loading
packages/client/dev.env.example 0 → 100644 +8 −0 Original line number Diff line number Diff line # where the backend is located VITE_API_HOST=http://localhost:3000 # what homeserver hosts the matrix users VITE_MATRIX_HOST=aftermath.gg # what hostname does the element instance run on VITE_ELEMENT_HOST=https://chat.fediverse.events No newline at end of file
packages/client/src/components/Chat/OpenChatButton.tsx +8 −2 Original line number Diff line number Diff line import { Badge, Button } from "@nextui-org/react"; import { Badge, Button, Link } from "@nextui-org/react"; import { useChatContext } from "../../contexts/ChatContext"; const OpenChatButton = () => { Loading @@ -11,7 +11,13 @@ const OpenChatButton = () => { color="danger" size="sm" > <Button>Chat</Button> <Button as={Link} href={import.meta.env.VITE_ELEMENT_HOST!} target="_blank" > Chat </Button> </Badge> ); }; Loading