Preserve --root CLI flag on restart (#6049)

* fix(#5985): preserve `--root` CLI flag on restart

* fix: resolve --root relative to automatic root

* chore: revert container changes

* fix: pass flags.root to restart container

---------

Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
Nate Moore 2023-02-09 14:02:51 -06:00 committed by GitHub
parent d6845245f2
commit 8b7cb64dad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Preserve `--root` CLI flag when restarting dev server

View file

@ -44,6 +44,7 @@ export default async function dev(
beforeRestart: () => console.clear(),
params: {
settings,
root: options.flags?.root,
logging: options.logging,
isRestart: options.isRestart,
},