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 63b66e7 commit 7c29b1aCopy full SHA for 7c29b1a
src/reload.ts
@@ -1,9 +1,10 @@
1
// @ts-nocheck
2
3
import fs from 'fs';
4
+import { appConfig } from './config';
5
6
export function reload({ app, watch, options = {} }) {
- if (process.env.NODE_ENV === 'production') return;
7
+ if (appConfig.env !== 'development') return;
8
9
const pollInterval = options.pollInterval || 50;
10
const quiet = options.quiet || false;
0 commit comments