Files
xLog/app/lib/helpers.ts
T
2022-05-02 20:43:47 +08:00

6 lines
198 B
TypeScript

import { IS_PROD, OUR_DOMAIN } from "./config.shared"
export const getSiteLink = ({ subdomain }: { subdomain: string }) => {
return `${IS_PROD ? "https" : "http"}://${subdomain}.${OUR_DOMAIN}`
}