Wait for server initialization
You can manually trigger and wait for server initialization with hypertune.initIfNeeded()
:
This will only trigger a new server initialization if the last one was over a second ago so you can call this on every backend request to ensure flag values are fresh while minimizing network latency and bandwidth.
This is particularly useful in serverless environments, e.g. Vercel deployments, where background SDK tasks like fetching updates aren't guaranteed to execute.
Check for server initialization
You can also check for server initialization with !!hypertune.getLastDataProviderInitTime()
:
Last updated