Skip to content

Commit

Permalink
refactor(reload): Update reload function to use appConfig for environ…
Browse files Browse the repository at this point in the history
…ment check
  • Loading branch information
wajeht committed Nov 22, 2024
1 parent 63b66e7 commit 7c29b1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reload.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @ts-nocheck

import fs from 'fs';
import { appConfig } from './config';

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

const pollInterval = options.pollInterval || 50;
const quiet = options.quiet || false;
Expand Down

0 comments on commit 7c29b1a

Please sign in to comment.