From ec1482e6dcb4cab965a1cc225d4a1e5990e02847 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Tue, 26 Mar 2024 12:35:05 +0100 Subject: [PATCH] image delivery --- src/checkout/components/LineItem.css | 1 + src/checkout/utils.js | 4 ++-- src/decide/utils.js | 4 ++-- src/explore/utils.js | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/checkout/components/LineItem.css b/src/checkout/components/LineItem.css index 9cdb470..9357e47 100644 --- a/src/checkout/components/LineItem.css +++ b/src/checkout/components/LineItem.css @@ -14,6 +14,7 @@ display: block; aspect-ratio: 1 / 1; width: 100%; + height: auto; } .c_LineItem__name { diff --git a/src/checkout/utils.js b/src/checkout/utils.js index 83e111c..f4af130 100644 --- a/src/checkout/utils.js +++ b/src/checkout/utils.js @@ -4,8 +4,8 @@ export const html = String.raw; // use the image server if not using local images const IMAGE_SERVER = - process?.env?.USE_LOCAL_IMAGES !== "true" - ? "https://the-tractor.store/v2" + typeof process === "undefined" || process.env.USE_LOCAL_IMAGES !== "true" + ? "https://cdn.the-tractor.store" : ""; /** diff --git a/src/decide/utils.js b/src/decide/utils.js index 83e111c..f4af130 100644 --- a/src/decide/utils.js +++ b/src/decide/utils.js @@ -4,8 +4,8 @@ export const html = String.raw; // use the image server if not using local images const IMAGE_SERVER = - process?.env?.USE_LOCAL_IMAGES !== "true" - ? "https://the-tractor.store/v2" + typeof process === "undefined" || process.env.USE_LOCAL_IMAGES !== "true" + ? "https://cdn.the-tractor.store" : ""; /** diff --git a/src/explore/utils.js b/src/explore/utils.js index 83e111c..f4af130 100644 --- a/src/explore/utils.js +++ b/src/explore/utils.js @@ -4,8 +4,8 @@ export const html = String.raw; // use the image server if not using local images const IMAGE_SERVER = - process?.env?.USE_LOCAL_IMAGES !== "true" - ? "https://the-tractor.store/v2" + typeof process === "undefined" || process.env.USE_LOCAL_IMAGES !== "true" + ? "https://cdn.the-tractor.store" : ""; /**