function getBasePath(configApi) { let { pathname } = new URL( configApi.getOptionalString("app.baseUrl") ?? "/", "http://sample.dev" // baseUrl can be specified as just a path ); pathname = pathname.replace(/\/*$/, ""); return pathname; } export { getBasePath }; //# sourceMappingURL=getBasePath.esm.js.map