UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

20 lines 617 B
/** * 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 declare let getUrlOrigin: () => string; /** * Overwrite the getUrlOrigin function. * * Use this function in server environments to * define how the URL origin is resolved. * * @param {() => string} fn - The new implementation for `getUrlOrigin()`. */ export declare let overwriteGetUrlOrigin: (fn: () => string) => void; //# sourceMappingURL=get-url-origin.d.ts.map