mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
84312f24f8
commit
6f5de8dfba
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export function vitePluginAstroPreview(settings: AstroSettings): Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
const strippedPathname = stripBase(req.url!, base);
|
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 === '/';
|
const isRoot = pathname === '/';
|
||||||
|
|
||||||
// Validate trailingSlash
|
// Validate trailingSlash
|
||||||
|
|
Loading…
Add table
Reference in a new issue