diff options
author | 2023-11-14 09:41:17 +0000 | |
---|---|---|
committer | 2023-11-14 09:41:17 +0000 | |
commit | 6f5de8dfba021cacc8f58140671a98bcbb0936a3 (patch) | |
tree | e8f8525f422266f000e864ff36ca912e54db715b | |
parent | 84312f24f8af2098b0831cf2361ea3d37761d3d3 (diff) | |
download | astro-6f5de8dfba021cacc8f58140671a98bcbb0936a3.tar.gz astro-6f5de8dfba021cacc8f58140671a98bcbb0936a3.tar.zst astro-6f5de8dfba021cacc8f58140671a98bcbb0936a3.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/preview/vite-plugin-astro-preview.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 b07b88b7a..7f9979275 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 |