From 13221b202a1af7cd2d01b4a9b61f61f369b086a7 Mon Sep 17 00:00:00 2001 From: Florian BOUILLON Date: Wed, 6 Dec 2023 11:00:16 +0100 Subject: [PATCH] feat: Add manual polling option Signed-off-by: Florian BOUILLON --- astro.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 8d4c568..db7cbf2 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -62,8 +62,8 @@ export default defineConfig({ watch: { // Ignore some paths ignored: [], - // support WSL strange things - usePolling: !!process.env.WSL_DISTRO_NAME + // support polling and WSL + usePolling: !!(process.env.USE_POLLING ?? process.env.WSL_DISTRO_NAME) } } },