docs: fixes to recipes and examples following latest update (#13933)

This commit is contained in:
Shahed Nasser
2025-11-03 17:22:59 +02:00
committed by GitHub
parent b30dda3eda
commit cdbb4b925b
21 changed files with 386 additions and 665 deletions
@@ -426,13 +426,27 @@ If you get a type error on resolving the Algolia Module, run the Medusa applicat
</Note>
```ts title="src/workflows/steps/sync-products.ts"
import { ProductDTO } from "@medusajs/framework/types"
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
import { ALGOLIA_MODULE } from "../../modules/algolia"
import AlgoliaModuleService from "../../modules/algolia/service"
export type SyncProductsStepInput = {
products: ProductDTO[]
products: {
id: string
title: string
description?: string
handle: string
thumbnail?: string
categories: {
id: string
name: string
handle: string
}[]
tags: {
id: string
value: string
}[]
}[]
}
export const syncProductsStep = createStep(