From 79703897f045ab5dc31ad7b2ca660c02424a48d3 Mon Sep 17 00:00:00 2001 From: Daniel <50356015+danny007in@users.noreply.github.com> Date: Sun, 1 Sep 2024 19:28:10 +0530 Subject: [PATCH] fix astro watch dist --- src/config/astro.config.mjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config/astro.config.mjs b/src/config/astro.config.mjs index b0bf95873..6a64c20b0 100644 --- a/src/config/astro.config.mjs +++ b/src/config/astro.config.mjs @@ -15,5 +15,12 @@ export default defineConfig({ integrations: [mdx()], srcDir: './src/html', cacheDir: './dist/pages', - outDir: './dist/pages' + outDir: './dist/pages', + vite: { + server: { + watch: { + ignored: ['!**/dist/**'], + } + } + } })