mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix(dev): open to base path (#8123)
This commit is contained in:
parent
1b656233b3
commit
1f6497c334
2 changed files with 8 additions and 1 deletions
5
.changeset/popular-carrots-sneeze.md
Normal file
5
.changeset/popular-carrots-sneeze.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Open to configured `base` when `astro dev --open` runs
|
|
@ -56,7 +56,9 @@ export async function createContainer({
|
|||
settings = injectImageEndpoint(settings);
|
||||
}
|
||||
|
||||
const { host, headers, open } = settings.config.server;
|
||||
const { base, server: { host, headers, open: shouldOpen }} = settings.config;
|
||||
// Open server to the correct path
|
||||
const open = shouldOpen ? base : false;
|
||||
|
||||
// The client entrypoint for renderers. Since these are imported dynamically
|
||||
// we need to tell Vite to preoptimize them.
|
||||
|
|
Loading…
Reference in a new issue