mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 05:47:31 -04:00
7 lines
225 B
TypeScript
7 lines
225 B
TypeScript
import { createIsomorphicFn } from "@tanstack/react-start";
|
|
import { config } from "~/server/core/config";
|
|
|
|
export const getOrigin = createIsomorphicFn()
|
|
.server(() => config.baseUrl)
|
|
.client(() => window.location.origin);
|