QMetaRam / node_modules /@tanstack /query-core /build /modern /environmentManager.js
metarm's picture
Upload folder using huggingface_hub (part 11)
96c8713 verified
Raw History Blame Contribute Delete
578 Bytes
import { isServer as isServer$1 } from "./utils.js";
//#region src/environmentManager.ts
let isServerFn = () => isServer$1;
/**
* Returns whether the current runtime should be treated as a server environment.
*/
const isServer = () => isServerFn();
/**
* Manages environment detection used by TanStack Query internals.
*/
const environmentManager = {
isServer,
/**
* Overrides the server check globally.
*/
setIsServer(isServerValue) {
isServerFn = isServerValue;
}
};
//#endregion
export { environmentManager, isServer };
//# sourceMappingURL=environmentManager.js.map