mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Refactor BaseUrl string conversion
We're only using this as a string, so no need to convert it to an URL.
This commit is contained in:
@@ -4,7 +4,7 @@ import type { ProjectWithListingData } from "@app/lib/projects";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { config } from "@app/lib/config";
|
||||
import { baseUrlToUrl, isLocal } from "@app/lib/utils";
|
||||
import { baseUrlToString, isLocal } from "@app/lib/utils";
|
||||
import { getProjectsListingData } from "@app/lib/projects";
|
||||
import { handleError } from "@app/views/nodes/error";
|
||||
|
||||
@@ -77,6 +77,6 @@ export async function loadNodeRoute(
|
||||
},
|
||||
};
|
||||
} catch (error: any) {
|
||||
return handleError(error, baseUrlToUrl(api.baseUrl).toString());
|
||||
return handleError(error, baseUrlToString(api.baseUrl));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user