Skip to content

Commit

Permalink
fix(dev): open to base path (#8123)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 17, 2023
1 parent 1b65623 commit 1f6497c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-carrots-sneeze.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

Open to configured `base` when `astro dev --open` runs
4 changes: 3 additions & 1 deletion packages/astro/src/core/dev/container.ts
Expand Up @@ -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.
Expand Down

0 comments on commit 1f6497c

Please sign in to comment.