feat: rewrite profile section, some minor chaanges #120

Merged
alekswilc merged 2 commits from new-profiles into main 2025-04-21 20:47:12 +02:00
Showing only changes of commit 82397be39c - Show all commits

View File

@ -26,10 +26,8 @@ export const imgProxySign = (target: string) =>
return hmac.digest("base64url");
};
export const generateUrl = (url: string, options?: string) =>
export const generateUrl = (url: string, options: string = "rs:auto:128:128:1/f:png") =>
{
if (!options) options = "rs:auto:128:128:1/f:png";
if (url.includes('https://proxy.cdn.alekswilc.dev/')) return url;
alekswilc marked this conversation as resolved Outdated

fallback to old style.

fallback to old style.

done

done
if (process.env.NODE_ENV === "development")