From 45c0551cbdb463192d4548f3eb23d894770dc54f Mon Sep 17 00:00:00 2001 From: Adam Howard <91115+codeincontext@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:52:34 +0100 Subject: [PATCH] PR feedback --- .../posthogAiBetaServerClient/featureFlagEvaluation.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/analytics/posthogAiBetaServerClient/featureFlagEvaluation.ts b/packages/core/src/analytics/posthogAiBetaServerClient/featureFlagEvaluation.ts index e6ddca552..e15d9d465 100644 --- a/packages/core/src/analytics/posthogAiBetaServerClient/featureFlagEvaluation.ts +++ b/packages/core/src/analytics/posthogAiBetaServerClient/featureFlagEvaluation.ts @@ -51,7 +51,5 @@ export const cachedFetch: PostHog["fetch"] = async (url, options) => { }; export const featureFlagsPollingInterval = - process.env.NODE_ENV === "production" - ? ONE_MINUTE - : // prevent polling timeout from stacking when HMR replaces posthogAiBetaServerClient - ONE_DAY; + // prevent polling timeout from stacking when HMR replaces posthogAiBetaServerClient + process.env.NODE_ENV === "development" ? ONE_DAY : ONE_MINUTE;