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:
parent
a79a8b0230
commit
20c7765be5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue