diff options
author | 2021-11-16 22:11:36 +0000 | |
---|---|---|
committer | 2021-11-16 22:11:36 +0000 | |
commit | 887fad5a11a5d7530ffc3785e1a6f873b8858fa2 (patch) | |
tree | 284b77872299092e608cc14a92376a7fcdca836c | |
parent | 0f9c191010a45b080638e065715157df15e70fc6 (diff) | |
download | astro-887fad5a11a5d7530ffc3785e1a6f873b8858fa2.tar.gz astro-887fad5a11a5d7530ffc3785e1a6f873b8858fa2.tar.zst astro-887fad5a11a5d7530ffc3785e1a6f873b8858fa2.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/core/dev/index.ts | 6 |
1 files 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 { |