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:
parent
d6845245f2
commit
8b7cb64dad
2 changed files with 6 additions and 0 deletions
5
.changeset/tasty-planes-knock.md
Normal file
5
.changeset/tasty-planes-knock.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Preserve `--root` CLI flag when restarting dev server
|
|
@ -44,6 +44,7 @@ export default async function dev(
|
|||
beforeRestart: () => console.clear(),
|
||||
params: {
|
||||
settings,
|
||||
root: options.flags?.root,
|
||||
logging: options.logging,
|
||||
isRestart: options.isRestart,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue