Skip to content

Commit

Permalink
refactor: make minimum interval be 10s only at development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 committed Dec 12, 2022
1 parent b9b49fe commit 6c3c994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/config.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const validate = ajv.compile<ConfigData>(
type: "object",
properties: {
watchInterval: {
minimum: 60000,
minimum: process.env.NODE_ENV === "development" ? 10000 : 60000,
},
},
},
Expand Down

0 comments on commit 6c3c994

Please sign in to comment.