Debug insights automatically only in dev

This commit is contained in:
Sam Becker 2025-02-18 19:40:12 -06:00
parent 7d2d7b49cb
commit a4a02c95de

View File

@ -8,7 +8,7 @@ import { getAuthAction } from '@/auth/actions';
import useSWR from 'swr';
import {
HIGH_DENSITY_GRID,
IS_PRODUCTION,
IS_DEVELOPMENT,
MATTE_PHOTOS,
SHOW_ZOOM_CONTROLS,
} from '@/app/config';
@ -64,7 +64,7 @@ export default function AppStateProvider({
const [shouldShowBaselineGrid, setShouldShowBaselineGrid] =
useState(false);
const [shouldDebugInsights, setShouldDebugInsights] =
useState(!IS_PRODUCTION);
useState(IS_DEVELOPMENT);
const invalidateSwr = useCallback(() => setSwrTimestamp(Date.now()), []);