From 6c3c9943ebb83a3597cc44a090d8d7ce9929c260 Mon Sep 17 00:00:00 2001 From: Sophia Date: Mon, 12 Dec 2022 23:15:30 +0900 Subject: [PATCH] refactor: make minimum interval be 10s only at development mode --- src/utils/config.const.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.const.ts b/src/utils/config.const.ts index 92bbe21..d44367b 100644 --- a/src/utils/config.const.ts +++ b/src/utils/config.const.ts @@ -13,7 +13,7 @@ export const validate = ajv.compile( type: "object", properties: { watchInterval: { - minimum: 60000, + minimum: process.env.NODE_ENV === "development" ? 10000 : 60000, }, }, },