docs: update algolia plugin next.js details (#5807)
This commit is contained in:
@@ -125,7 +125,10 @@ const plugins = [
|
|||||||
searchableAttributes,
|
searchableAttributes,
|
||||||
attributesToRetrieve,
|
attributesToRetrieve,
|
||||||
},
|
},
|
||||||
transformer,
|
transformer: (product) => ({
|
||||||
|
objectID: product.id,
|
||||||
|
// other attributes...
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -176,10 +179,6 @@ const plugins = [
|
|||||||
"images",
|
"images",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
transformer: (product) => ({
|
|
||||||
objectID: product.id,
|
|
||||||
// other attributes...
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -280,11 +279,11 @@ If you run your Next.js Starter Template now while the Medusa backend is running
|
|||||||
|
|
||||||
:::note
|
:::note
|
||||||
|
|
||||||
To make sure the Next.js Starter Template properly displays the products in the search result, include in the `attributesToRetrieve` setting of the Algolia plugin on the Medusa backend at least the fields `title`, `handle`, `description`, and `thumbnail`.
|
To make sure the Next.js Starter Template properly displays the products in the search result, include in the `attributesToRetrieve` setting of the Algolia plugin on the Medusa backend at least the fields `id`, `title`, `handle`, `description`, and `thumbnail`.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Add to Other Storefronts
|
### Add to Other Storefronts
|
||||||
|
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ To make sure the Next.js Starter Template properly displays the products in the
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Add to Other Storefronts
|
### Add to Other Storefronts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user