Debug insights automatically only in dev
This commit is contained in:
parent
7d2d7b49cb
commit
a4a02c95de
@ -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()), []);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user