We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd250b commit 262e368Copy full SHA for 262e368
packages/cli/src/components/hooks/useLiveReload.tsx
@@ -5,6 +5,10 @@ export default function useLiveReload(onShouldReload: () => void) {
5
const socketRef = useRef<Socket | null>(null);
6
7
useEffect(() => {
8
+ if (process.env.NODE_ENV === 'production') {
9
+ return;
10
+ }
11
+
12
// This is required to make navigating between previews work
13
onShouldReload();
14
0 commit comments