]> Untitled Git - lemmy-ui.git/blob - src/shared/utils/env/get-host.ts
Merge remote-tracking branch 'origin/main' into feat/add-post-body-preview-to-desktop
[lemmy-ui.git] / src / shared / utils / env / get-host.ts
1 import { isBrowser } from "@utils/browser";
2 import { getExternalHost, getInternalHost } from "@utils/env";
3
4 export default function getHost() {
5   return isBrowser() ? getExternalHost() : getInternalHost();
6 }