fix: use correct env var for image

This commit is contained in:
DuvCharles 2023-04-12 18:16:55 +02:00
parent 0c180869b1
commit 2f78d3a75d

View File

@ -112,7 +112,7 @@ const normalizeProductOptionValue = (
export const normalizeProductImage = (
image: SyliusProductImage
): ProductImage => ({
url: process.env.NEXT_PUBLIC_SYLIUS_ALLOWED_IMAGE_URL + image.path,
url: process.env.NEXT_PUBLIC_SYLIUS_API_URL + image.path,
})
const normalizeProductPrice = (