File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
js/botasaurus-server-js/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ class ApiConfig {
360360 static autoStart : boolean = true ;
361361 static apiOnlyMode : boolean ;
362362 static routeSetupFn ?: ( server : FastifyInstance ) => void ;
363- static apiBasePath : string ; // Default empty
363+ static apiBasePath : string = '' ; // Default empty
364364
365365 /**
366366 * Enables API
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ function normalizePath(path: string): string {
7777 . replace ( / \/ + / g, "/" ) ;
7878}
7979
80- // @ts -ignore
8180function cleanBasePath ( apiBasePath : string | null | undefined ) {
8281
8382 if ( typeof apiBasePath === "string" ) {
@@ -96,6 +95,7 @@ function cleanBasePath(apiBasePath: string | null | undefined){
9695
9796 return path ;
9897 }
98+ return ''
9999
100100}
101101
You can’t perform that action at this time.
0 commit comments