diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts index e071a9239..00b18fd35 100644 --- a/packages/common/src/constants.ts +++ b/packages/common/src/constants.ts @@ -662,8 +662,6 @@ export const DEFAULT_PUBKEY_STR = "11111111111111111111111111111111"; export const MOBILE_CHANNEL_LOGS = "mobile-logs"; -export const IMAGE_PROXY_URL = "https://d1a7965zcx2lcc.cloudfront.net"; - export const BACKPACK_TEAM = [ "ee7ce804-44b2-4360-bfbb-28e14cd0499b", "29c33e60-d54a-4fe4-80e9-4bbfcc6c69b8", diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 9ced4669b..46414fef1 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -3,8 +3,6 @@ import type { BigNumber } from "ethers"; import { ethers } from "ethers"; import { v1 } from "uuid"; -import { IMAGE_PROXY_URL } from "./constants"; - const usd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD", @@ -89,7 +87,7 @@ export function externalResourceUri( export function proxyImageUrl(url: string): string { if (url && (url.startsWith("http://") || url.startsWith("https://"))) { - return `${IMAGE_PROXY_URL}/insecure/rs:fit:400:400:0:0/plain/${url}`; + return `https://images.xnfts.dev/cdn-cgi/image/fit=contain,width=400,height=400,quality=85/${url}`; } return url; }