[ci] yarn format
This commit is contained in:
parent
0f9c191010
commit
887fad5a11
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue