@inlang/paraglide-js
Version:
[](https://inlang.com)
20 lines • 564 B
TypeScript
/**
* The origin of the current URL.
*
* Defaults to "http://y.com" in non-browser environments. If this
* behavior is not desired, the implementation can be overwritten
* by `overwriteGetUrlOrigin()`.
*
* @type {() => string}
*/
export let getUrlOrigin: () => string;
/**
* Overwrite the getUrlOrigin function.
*
* Use this function in server environments to
* define how the URL origin is resolved.
*
* @type {(fn: () => string) => void}
*/
export let overwriteGetUrlOrigin: (fn: () => string) => void;
//# sourceMappingURL=get-url-origin.d.ts.map