From 6f5de8dfba021cacc8f58140671a98bcbb0936a3 Mon Sep 17 00:00:00 2001 From: bluwy Date: Tue, 14 Nov 2023 09:41:17 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/preview/vite-plugin-astro-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/preview/vite-plugin-astro-preview.ts b/packages/astro/src/core/preview/vite-plugin-astro-preview.ts index b07b88b7ad99..7f9979275607 100644 --- a/packages/astro/src/core/preview/vite-plugin-astro-preview.ts +++ b/packages/astro/src/core/preview/vite-plugin-astro-preview.ts @@ -25,7 +25,7 @@ export function vitePluginAstroPreview(settings: AstroSettings): Plugin { } const strippedPathname = stripBase(req.url!, base); - const pathname = new URL(strippedPathname, 'https://a.b').pathname + const pathname = new URL(strippedPathname, 'https://a.b').pathname; const isRoot = pathname === '/'; // Validate trailingSlash