Skip to content

Commit 7c29b1a

Browse files
committed
refactor(reload): Update reload function to use appConfig for environment check
1 parent 63b66e7 commit 7c29b1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reload.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// @ts-nocheck
22

33
import fs from 'fs';
4+
import { appConfig } from './config';
45

56
export function reload({ app, watch, options = {} }) {
6-
if (process.env.NODE_ENV === 'production') return;
7+
if (appConfig.env !== 'development') return;
78

89
const pollInterval = options.pollInterval || 50;
910
const quiet = options.quiet || false;

0 commit comments

Comments
 (0)