From 8f7261317ec45d4b1308dabe8338ed146945a123 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 9 Oct 2024 10:15:43 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Bjorn Lu --- .changeset/mean-bags-shave.md | 2 +- packages/astro/src/core/dev/restart.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/mean-bags-shave.md b/.changeset/mean-bags-shave.md index 3ed5868d320b..88263fa05ec8 100644 --- a/.changeset/mean-bags-shave.md +++ b/.changeset/mean-bags-shave.md @@ -2,4 +2,4 @@ 'astro': patch --- -Fixed .mts astro config files not reloading automatically +Fixes a bug where `astro.config.mts` and `astro.config.cts` weren't reloading the dev server upon modifications. diff --git a/packages/astro/src/core/dev/restart.ts b/packages/astro/src/core/dev/restart.ts index f3dd8d54acd7..b7eab38af66b 100644 --- a/packages/astro/src/core/dev/restart.ts +++ b/packages/astro/src/core/dev/restart.ts @@ -30,7 +30,7 @@ async function createRestartedContainer( return newContainer; } -const configRE = /.*astro.config.(?:mjs|mts|cjs|js|ts)$/; +const configRE = /.*astro.config.(?:mjs|mts|cjs|cts|js|ts)$/; function shouldRestartContainer( { settings, inlineConfig, restartInFlight }: Container,