narrow-shampoo-40181
09/25/2025, 4:50 PMnarrow-shampoo-40181
09/25/2025, 4:52 PMconst gb = new GrowthBook({
apiHost: "<https://cdn.growthbook.io>",
clientKey: clientKey,
attributes: gbAttributes,
subscribeToChanges: false,
// enableDevMode: true,
// Disable background streaming connection
backgroundSync: false,
});
await withTimeout(
gb.init({ skipCache: true }),
GROWTHBOOK_TIMEOUT_MS,
'GrowthBook init timeout'
);
(In production we do our own caching in front of this worker, so here we disable the cache)rough-businessperson-52903
10/21/2025, 8:34 AM