Skip to content

Commit fbf5332

Browse files
committed
fix: url BASE_URL trailing slash
1 parent 1cf0d19 commit fbf5332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/urls.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const appPath = (() => {
1111
return "";
1212
}
1313

14-
return envValue;
14+
// Remove trailing slash if present
15+
return envValue.endsWith("/") ? envValue.slice(0, -1) : envValue;
1516
})();
1617

1718
console.log({ appPath });

0 commit comments

Comments
 (0)