Skip to content

Commit 67084c0

Browse files
committed
fixes
1 parent d70a691 commit 67084c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/botasaurus-server-js/src/api-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

js/botasaurus-server-js/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ function normalizePath(path: string): string {
7777
.replace(/\/+/g, "/");
7878
}
7979

80-
// @ts-ignore
8180
function 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

0 commit comments

Comments
 (0)