Skip to content

Commit

Permalink
fix(express-templates-reload): Correct environment check to 'production'
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Jan 26, 2025
1 parent 71c136f commit 965e818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/express-templates-reload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function expressTemplatesReload({
watch: { path: string; extensions?: string[] }[];
options?: { pollInterval?: number; quiet?: boolean };
}): void {
if (process.env.NODE_ENV === 'development') return;
if (process.env.NODE_ENV === 'production') return;

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

0 comments on commit 965e818

Please sign in to comment.