1 import { isBrowser } from "@utils/browser";
2 import { testHost } from "../../config";
4 export default function getExternalHost() {
6 ? `${window.location.hostname}${
7 ["1234", "1235"].includes(window.location.port)
9 : window.location.port == ""
11 : `:${window.location.port}`
13 : process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST || testHost;