Skip to content

Commit

Permalink
image delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Mar 26, 2024
1 parent 9cd911f commit ec1482e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/checkout/components/LineItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
display: block;
aspect-ratio: 1 / 1;
width: 100%;
height: auto;
}

.c_LineItem__name {
Expand Down
4 changes: 2 additions & 2 deletions src/checkout/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
: "";

/**
Expand Down
4 changes: 2 additions & 2 deletions src/decide/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
: "";

/**
Expand Down
4 changes: 2 additions & 2 deletions src/explore/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
: "";

/**
Expand Down

0 comments on commit ec1482e

Please sign in to comment.