From 887fad5a11a5d7530ffc3785e1a6f873b8858fa2 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 16 Nov 2021 22:11:36 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/core/dev/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/core/dev/index.ts b/packages/astro/src/core/dev/index.ts index 04b0abf7a..e1fe59a8f 100644 --- a/packages/astro/src/core/dev/index.ts +++ b/packages/astro/src/core/dev/index.ts @@ -280,12 +280,12 @@ export class AstroDevServer { let routePathname: string = pathname; // If using a subpath, ensure that the user has included the pathname // such as /blog in the URL. - if(this.devRoot !== '/') { - if(pathname.startsWith(this.devRoot)) { + if (this.devRoot !== '/') { + if (pathname.startsWith(this.devRoot)) { // This includes the subpath, so strip off the subpath so that // matchRoute finds this route. routePathname = pathname.substr(this.devRoot.length) || ''; - if(!routePathname.startsWith('/')) { + if (!routePathname.startsWith('/')) { routePathname = '/' + routePathname; } } else {