Local-only, offline mode

You can disable server initialization and use a build-time fallback snapshot of flag logic to use SDKs in local-only, offline mode.

Set the initDataProvider option to null in the call to initHypertune. You can also set remoteLogging.mode to off to disable sending logs to the server:

import { initHypertune } from "./generated/hypertune";

const hypertune = initHypertune({
  token: process.env.REACT_APP_HYPERTUNE_TOKEN!,
  initDataProvider: null,
  remoteLogging: { mode: "off" },
});

export default hypertune;

This is useful when running tests and using Hypertune in isolated, secure, offline environments.

Last updated