* use cross-fetch
* remove from utils usage
import { initializeSite, isAuthPath } from "@utils/app";
import { ErrorPageData } from "@utils/types";
+import fetch from "cross-fetch";
import type { Request, Response } from "express";
import { StaticRouter, matchPath } from "inferno-router";
import { renderToString } from "inferno-server";
+import fetch from "cross-fetch";
import type { Request, Response } from "express";
import { LemmyHttp } from "lemmy-js-client";
import { getHttpBaseExternal, getHttpBaseInternal } from "../../shared/env";
+import fetch from "cross-fetch";
+
export async function fetchIconPng(iconUrl: string) {
return await fetch(iconUrl)
.then(res => res.blob())