Skip to content

Commit

Permalink
chore: optimize check (#11704)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored Aug 14, 2024
1 parent a79a8b0 commit 20c7765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/dev/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 20c7765

Please sign in to comment.