summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/preview/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/src/core/preview/index.ts b/packages/astro/src/core/preview/index.ts
index 5aa5d50b9..221046d39 100644
--- a/packages/astro/src/core/preview/index.ts
+++ b/packages/astro/src/core/preview/index.ts
@@ -23,7 +23,7 @@ interface PreviewServer {
/** The primary dev action */
export default async function preview(config: AstroConfig, { logging }: PreviewOptions): Promise<PreviewServer> {
const startServerTime = performance.now();
- const base = config.buildOptions.site ? new URL(config.buildOptions.site).pathname + '/' : '/';
+ const base = config.buildOptions.site ? new URL(config.buildOptions.site).pathname : '/';
// Create the preview server, send static files out of the `dist/` directory.
const server = http.createServer((req, res) => {