0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

chore: optimize check (#11704)

This commit is contained in:
Florian Lefebvre 2024-08-14 14:59:04 +02:00 committed by GitHub
parent a79a8b0230
commit 20c7765be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ function shouldRestartContainer(
const settingsPath = vite.normalizePath(
fileURLToPath(new URL('settings.json', settings.dotAstroDir)),
);
if (settingsPath.match(normalizedChangedFile)) {
if (settingsPath.endsWith(normalizedChangedFile)) {
shouldRestart = settings.preferences.ignoreNextPreferenceReload ? false : true;
settings.preferences.ignoreNextPreferenceReload = false;