flagsmith-nodejs-client icon indicating copy to clipboard operation
flagsmith-nodejs-client copied to clipboard

With offlineHandler and without offlineMode, the client always serves flags from the local json file even thought flagsmith server is available

Open nishant-shah-social opened this issue 4 months ago • 0 comments

Hello, We are using flagsmith inhouse in local evaluation mode. We were trying to implement offline handler as described in the second point here

Our expectation is:- If flagsmith server is available then use the environment document fetched from the server for the flag evaluation. If flagsmith server is unavailable then use the environment document present in the .json file in the local.

Actual Behaviour:- Even if flagsmith server is available, the flags are served from the .json file in the local

Note:-we only have offlineHandler set. The offlineMode is false

Can someone please clarify if our expectation is correct? If yes then why its not behaving this way?

Thanks!

nishant-shah-social avatar Jul 03 '25 18:07 nishant-shah-social