diff options
-rw-r--r-- | .changeset/tasty-planes-knock.md | 5 | ||||
-rw-r--r-- | packages/astro/src/core/dev/dev.ts | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/tasty-planes-knock.md b/.changeset/tasty-planes-knock.md new file mode 100644 index 000000000..3a7a3602e --- /dev/null +++ b/.changeset/tasty-planes-knock.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Preserve `--root` CLI flag when restarting dev server diff --git a/packages/astro/src/core/dev/dev.ts b/packages/astro/src/core/dev/dev.ts index 4fcac87fa..378a7157e 100644 --- a/packages/astro/src/core/dev/dev.ts +++ b/packages/astro/src/core/dev/dev.ts @@ -44,6 +44,7 @@ export default async function dev( beforeRestart: () => console.clear(), params: { settings, + root: options.flags?.root, logging: options.logging, isRestart: options.isRestart, }, |