Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0f7c8ef90 | ||
|
|
78432cd479 | ||
|
|
9a8e5d2b04 | ||
|
|
1bcb6911db | ||
|
|
04a0abb155 | ||
|
|
2693d05d07 | ||
|
|
dd50489718 | ||
|
|
3577a70f78 | ||
|
|
3b0be2bbdd | ||
|
|
014b4f88a3 | ||
|
|
3fefd44c49 |
No files matched your search
@@ -122,7 +122,7 @@ jobs:
|
|||||||
needs: gitleaks
|
needs: gitleaks
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 30
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_DIR: workloads/ecommerce
|
APP_DIR: workloads/ecommerce
|
||||||
@@ -367,6 +367,12 @@ jobs:
|
|||||||
|
|
||||||
# CRITICAL bloquea el pipeline: no se sube una imagen con una CVE
|
# CRITICAL bloquea el pipeline: no se sube una imagen con una CVE
|
||||||
# crítica conocida y con fix disponible.
|
# crítica conocida y con fix disponible.
|
||||||
|
# --timeout 15m0s: el default de Trivy (5m) dejó de alcanzar también
|
||||||
|
# para el frontend (visto en vivo: "context deadline exceeded" a los
|
||||||
|
# ~4m45s, en un run justo después de terminar el docker build, con
|
||||||
|
# el host bajo la misma inestabilidad de nodo vista ese día). Mismo
|
||||||
|
# fix ya aplicado en build-medusa.yaml el 2026-08-16 -- el supuesto
|
||||||
|
# de que el frontend era más liviano y no lo necesitaba ya no vale.
|
||||||
- name: Escanear imagen (Trivy) — CRITICAL bloquea
|
- name: Escanear imagen (Trivy) — CRITICAL bloquea
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -375,6 +381,7 @@ jobs:
|
|||||||
--severity CRITICAL \
|
--severity CRITICAL \
|
||||||
--exit-code 1 \
|
--exit-code 1 \
|
||||||
--ignore-unfixed \
|
--ignore-unfixed \
|
||||||
|
--timeout 15m0s \
|
||||||
"${IMAGE_NAME}:${{ steps.vars.outputs.VERSION }}"
|
"${IMAGE_NAME}:${{ steps.vars.outputs.VERSION }}"
|
||||||
|
|
||||||
# HIGH solo informa por ahora — no bloquea mientras aprendemos a leer
|
# HIGH solo informa por ahora — no bloquea mientras aprendemos a leer
|
||||||
@@ -387,6 +394,7 @@ jobs:
|
|||||||
--severity HIGH \
|
--severity HIGH \
|
||||||
--exit-code 0 \
|
--exit-code 0 \
|
||||||
--ignore-unfixed \
|
--ignore-unfixed \
|
||||||
|
--timeout 15m0s \
|
||||||
"${IMAGE_NAME}:${{ steps.vars.outputs.VERSION }}"
|
"${IMAGE_NAME}:${{ steps.vars.outputs.VERSION }}"
|
||||||
|
|
||||||
# SBOM de la imagen que ya pasó el gate de CRITICAL — describe
|
# SBOM de la imagen que ya pasó el gate de CRITICAL — describe
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import { defineMiddlewares } from "@medusajs/medusa"
|
||||||
|
|
||||||
|
// GET /store/products descarta en silencio la relacion `categories`
|
||||||
|
// aunque `/admin/products` si la expone -- confirmado en vivo en la
|
||||||
|
// auditoria de Fase 5 (ver docs/decisiones/0004-evaluacion-stack-multi-categoria.md).
|
||||||
|
// Este es el patron oficial de Medusa v2 para ampliar los campos
|
||||||
|
// permitidos de una ruta core restringida (middleware global sobre
|
||||||
|
// req.allowed), no un query-config custom:
|
||||||
|
// https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links
|
||||||
|
export default defineMiddlewares({
|
||||||
|
routes: [
|
||||||
|
{
|
||||||
|
matcher: "/store/products",
|
||||||
|
middlewares: [
|
||||||
|
(req, res, next) => {
|
||||||
|
;(req.allowed ??= []).push("categories")
|
||||||
|
next()
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: gitea.cruzcloud.net/devops/docs-portal:v1.0.123
|
image: gitea.cruzcloud.net/devops/docs-portal:v1.0.125
|
||||||
# El base saca TODAS las capabilities. Probado en vivo y
|
# El base saca TODAS las capabilities. Probado en vivo y
|
||||||
# revertido: con drop: ALL (aunque se agregue NET_BIND_SERVICE
|
# revertido: con drop: ALL (aunque se agregue NET_BIND_SERVICE
|
||||||
# de vuelta) el propio entrypoint de nginx:1.27-alpine falla al
|
# de vuelta) el propio entrypoint de nginx:1.27-alpine falla al
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ spec:
|
|||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
- name: migrations
|
- name: migrations
|
||||||
image: gitea.cruzcloud.net/devops/ecommerce-medusa:v1.0.121
|
image: gitea.cruzcloud.net/devops/ecommerce-medusa:v1.0.127
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- node
|
- node
|
||||||
@@ -86,7 +86,7 @@ spec:
|
|||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: gitea.cruzcloud.net/devops/ecommerce-medusa:v1.0.121
|
image: gitea.cruzcloud.net/devops/ecommerce-medusa:v1.0.127
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: gitea.cruzcloud.net/devops/ecommerce-frontend:v1.0.122
|
image: gitea.cruzcloud.net/devops/ecommerce-frontend:v1.0.129
|
||||||
env:
|
env:
|
||||||
- name: HEADLESS_PROVIDER
|
- name: HEADLESS_PROVIDER
|
||||||
value: medusa
|
value: medusa
|
||||||
|
|||||||
@@ -66,190 +66,6 @@ type MedusaProductsResponse = {
|
|||||||
offset?: number;
|
offset?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
type LegacyMeta = {
|
|
||||||
category: string;
|
|
||||||
collection: string;
|
|
||||||
brand: string;
|
|
||||||
ageRange: string;
|
|
||||||
featured: boolean;
|
|
||||||
isNew: boolean;
|
|
||||||
fallbackImage: string;
|
|
||||||
fallbackThumbnail: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
const legacyProductMeta: Record<string, LegacyMeta> = {
|
|
||||||
"toy-story-5-rex": {
|
|
||||||
"category": "Figuras",
|
|
||||||
"collection": "Toy Story",
|
|
||||||
"brand": "Disney Pixar",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-001-toy-story-5-rex.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-001-toy-story-5-rex.webp"
|
|
||||||
},
|
|
||||||
"toy-story-5-buzz-lightyear": {
|
|
||||||
"category": "Figuras",
|
|
||||||
"collection": "Toy Story",
|
|
||||||
"brand": "Disney Pixar",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-002-toy-story-5-buzz-lightyear.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-002-toy-story-5-buzz-lightyear.webp"
|
|
||||||
},
|
|
||||||
"toy-story-5-jessie": {
|
|
||||||
"category": "Figuras",
|
|
||||||
"collection": "Toy Story",
|
|
||||||
"brand": "Disney Pixar",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-003-toy-story-5-jessie.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-003-toy-story-5-jessie.webp"
|
|
||||||
},
|
|
||||||
"toy-story-5-woody": {
|
|
||||||
"category": "Figuras",
|
|
||||||
"collection": "Toy Story",
|
|
||||||
"brand": "Disney Pixar",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-004-toy-story-5-woody.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-004-toy-story-5-woody.webp"
|
|
||||||
},
|
|
||||||
"intensamente-furia": {
|
|
||||||
"category": "Peluches",
|
|
||||||
"collection": "Intensamente",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-005-intensamente-furia.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-005-intensamente-furia.webp"
|
|
||||||
},
|
|
||||||
"intensamente-tristeza": {
|
|
||||||
"category": "Peluches",
|
|
||||||
"collection": "Intensamente",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": true,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-006-intensamente-tristeza.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-006-intensamente-tristeza.webp"
|
|
||||||
},
|
|
||||||
"minnie-y-mickey-mouse": {
|
|
||||||
"category": "Peluches",
|
|
||||||
"collection": "Mickey & Minnie",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-007-minnie-y-mickey-mouse.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-007-minnie-y-mickey-mouse.webp"
|
|
||||||
},
|
|
||||||
"angel-lilo-y-stitch": {
|
|
||||||
"category": "Peluches",
|
|
||||||
"collection": "Lilo & Stitch",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "3+",
|
|
||||||
"featured": true,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-008-angel-lilo-y-stitch.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-008-angel-lilo-y-stitch.webp"
|
|
||||||
},
|
|
||||||
"mochilas-disney-coleccion-marvel": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Marvel",
|
|
||||||
"brand": "Marvel",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-009-mochilas-disney-coleccion-marvel.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-009-mochilas-disney-coleccion-marvel.webp"
|
|
||||||
},
|
|
||||||
"mochila-ligera-y-resistente-al-agua-de-disney-frozen-mochila-escolar-y-de-viaje-con-multiples-compa": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Frozen",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-010-mochila-ligera-y-resistente-al-agua-de-d.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-010-mochila-ligera-y-resistente-al-agua-de-d.webp"
|
|
||||||
},
|
|
||||||
"mochila-escolar-de-spider-man-de-disney-moda-estudiantil-libro-de-gran-capacidad-mochila-ligera": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Marvel",
|
|
||||||
"brand": "Marvel",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-011-mochila-escolar-de-spider-man-de-disney-.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-011-mochila-escolar-de-spider-man-de-disney-.webp"
|
|
||||||
},
|
|
||||||
"disney-mochila-de-poliester-ultraligera-y-transpirable-de-gran-tamano-y-multiples-colores-dimension": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Disney",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-012-disney-mochila-de-poliester-ultraligera-.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-012-disney-mochila-de-poliester-ultraligera-.webp"
|
|
||||||
},
|
|
||||||
"mochila-pequena-bob-esponja": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Bob Esponja",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-013-mochila-pequena-bob-esponja.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-013-mochila-pequena-bob-esponja.webp"
|
|
||||||
},
|
|
||||||
"mochila-casual-de-gran-capacidad-con-estampado-de-bob-esponja-unisex-bolsa-escolar-de-dibujos-anim": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Bob Esponja",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-014-mochila-casual-de-gran-capacidad-con-est.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-014-mochila-casual-de-gran-capacidad-con-est.webp"
|
|
||||||
},
|
|
||||||
"mochila-escolar-estilo-britanico-de-disney-con-proteccion-de-la-columna-vertebral-nueva-mochila-de": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Disney",
|
|
||||||
"brand": "Disney",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-015-mochila-escolar-estilo-britanico-de-disn.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-015-mochila-escolar-estilo-britanico-de-disn.webp"
|
|
||||||
},
|
|
||||||
"disney-mochila-iron-man-de-poliester-ultraligera-y-transpirable-de-gran-tamano-dimensiones-46-cm-x": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Marvel",
|
|
||||||
"brand": "Marvel",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-016-disney-mochila-iron-man-de-poliester-ult.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-016-disney-mochila-iron-man-de-poliester-ult.webp"
|
|
||||||
},
|
|
||||||
"mochila-de-disney-marvel-capitan-america-de-gran-capacidad-ligera-y-resistente-a-salpicaduras-par": {
|
|
||||||
"category": "Mochilas",
|
|
||||||
"collection": "Marvel",
|
|
||||||
"brand": "Marvel",
|
|
||||||
"ageRange": "6+",
|
|
||||||
"featured": false,
|
|
||||||
"isNew": false,
|
|
||||||
"fallbackImage": "https://shop.cruzcloud.net/images/products/ari-017-mochila-de-disney-marvel-capitan-america.webp",
|
|
||||||
"fallbackThumbnail": "https://shop.cruzcloud.net/images/thumbnails/ari-017-mochila-de-disney-marvel-capitan-america.webp"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function backendUrl(): string {
|
function backendUrl(): string {
|
||||||
const value = process.env.MEDUSA_BACKEND_URL;
|
const value = process.env.MEDUSA_BACKEND_URL;
|
||||||
if (!value) {
|
if (!value) {
|
||||||
@@ -338,7 +154,6 @@ function mapVariant(variant: MedusaVariant): ProductVariant {
|
|||||||
|
|
||||||
function mapProduct(product: MedusaProduct): Product {
|
function mapProduct(product: MedusaProduct): Product {
|
||||||
const slug = product.handle || product.id;
|
const slug = product.handle || product.id;
|
||||||
const legacy = legacyProductMeta[slug];
|
|
||||||
|
|
||||||
const variant = product.variants?.[0];
|
const variant = product.variants?.[0];
|
||||||
const calculated = variant?.calculated_price;
|
const calculated = variant?.calculated_price;
|
||||||
@@ -346,24 +161,16 @@ function mapProduct(product: MedusaProduct): Product {
|
|||||||
const category =
|
const category =
|
||||||
product.categories?.[0]?.name ||
|
product.categories?.[0]?.name ||
|
||||||
stringMetadata(product.metadata, "category") ||
|
stringMetadata(product.metadata, "category") ||
|
||||||
legacy?.category ||
|
|
||||||
"Variedades";
|
"Variedades";
|
||||||
|
|
||||||
const collection =
|
const collection =
|
||||||
product.collection?.title ||
|
product.collection?.title ||
|
||||||
stringMetadata(product.metadata, "collection") ||
|
stringMetadata(product.metadata, "collection") ||
|
||||||
legacy?.collection ||
|
|
||||||
"";
|
"";
|
||||||
|
|
||||||
const brand =
|
const brand = stringMetadata(product.metadata, "brand") || "ARI Shopping";
|
||||||
stringMetadata(product.metadata, "brand") ||
|
|
||||||
legacy?.brand ||
|
|
||||||
"ARI Shopping";
|
|
||||||
|
|
||||||
const ageRange =
|
const ageRange = stringMetadata(product.metadata, "ageRange") || "Todas";
|
||||||
stringMetadata(product.metadata, "ageRange") ||
|
|
||||||
legacy?.ageRange ||
|
|
||||||
"Todas";
|
|
||||||
|
|
||||||
const images = [
|
const images = [
|
||||||
...(product.images || [])
|
...(product.images || [])
|
||||||
@@ -371,15 +178,8 @@ function mapProduct(product: MedusaProduct): Product {
|
|||||||
.filter(Boolean),
|
.filter(Boolean),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (images.length === 0 && legacy?.fallbackImage) {
|
|
||||||
images.push(legacy.fallbackImage);
|
|
||||||
}
|
|
||||||
|
|
||||||
const thumbnail =
|
const thumbnail =
|
||||||
product.thumbnail ||
|
product.thumbnail || images[0] || "/images/brand/logo-ari.png";
|
||||||
images[0] ||
|
|
||||||
legacy?.fallbackThumbnail ||
|
|
||||||
"/images/brand/logo-ari.png";
|
|
||||||
|
|
||||||
const price =
|
const price =
|
||||||
typeof calculated?.calculated_amount === "number"
|
typeof calculated?.calculated_amount === "number"
|
||||||
@@ -426,14 +226,8 @@ function mapProduct(product: MedusaProduct): Product {
|
|||||||
currency: normalizeCurrency(calculated?.currency_code),
|
currency: normalizeCurrency(calculated?.currency_code),
|
||||||
priceLabel: price === null ? "Consultar disponibilidad" : "",
|
priceLabel: price === null ? "Consultar disponibilidad" : "",
|
||||||
available,
|
available,
|
||||||
featured:
|
featured: booleanMetadata(product.metadata, "featured"),
|
||||||
booleanMetadata(product.metadata, "featured") ||
|
isNew: booleanMetadata(product.metadata, "isNew"),
|
||||||
legacy?.featured ||
|
|
||||||
false,
|
|
||||||
isNew:
|
|
||||||
booleanMetadata(product.metadata, "isNew") ||
|
|
||||||
legacy?.isNew ||
|
|
||||||
false,
|
|
||||||
image: images[0] || thumbnail,
|
image: images[0] || thumbnail,
|
||||||
thumbnail,
|
thumbnail,
|
||||||
images: images.length > 0 ? images : [thumbnail],
|
images: images.length > 0 ? images : [thumbnail],
|
||||||
@@ -528,7 +322,7 @@ async function fetchProducts(
|
|||||||
// region_id.
|
// region_id.
|
||||||
region_id: regionId(),
|
region_id: regionId(),
|
||||||
fields:
|
fields:
|
||||||
"+metadata,+images,+tags,+categories,+collection,+variants.inventory_quantity,+variants.calculated_price,+variants.options",
|
"+metadata,+images,+tags,+categories.*,+collection,+variants.inventory_quantity,+variants.calculated_price,+variants.options",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (filters?.query) {
|
if (filters?.query) {
|
||||||
@@ -559,7 +353,7 @@ export const medusaCatalogProvider: CatalogProvider = {
|
|||||||
// region_id.
|
// region_id.
|
||||||
region_id: regionId(),
|
region_id: regionId(),
|
||||||
fields:
|
fields:
|
||||||
"+metadata,+images,+tags,+categories,+collection,+variants.inventory_quantity,+variants.calculated_price,+variants.options",
|
"+metadata,+images,+tags,+categories.*,+collection,+variants.inventory_quantity,+variants.calculated_price,+variants.options",
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await medusaFetch<MedusaProductsResponse>(
|
const response = await medusaFetch<MedusaProductsResponse>(
|
||||||
|
|||||||
Reference in new issue
Block a user