docs: changes for new releases + fixes (#12945)

* docs: changes for new releases + fixes

* remove container option
This commit is contained in:
Shahed Nasser
2025-07-14 14:17:25 +03:00
committed by GitHub
parent 3028425a86
commit 541bff8c9b
10 changed files with 175 additions and 65 deletions
@@ -223,6 +223,23 @@ npx create-medusa-app@latest [project-name]
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`--version`
</Table.Cell>
<Table.Cell>
Specify the Medusa version to install in the project. The specified version will be used for every `@medusajs/*` package in the Medusa and Next.js Starter projects.
</Table.Cell>
<Table.Cell>
The latest version of Medusa at the time of running the command.
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
@@ -270,6 +287,18 @@ Learn more about how to create a plugin in [this documentation](!docs!/learn/fun
---
## Install a Specific Medusa Version
To install a specific version of Medusa, use the `--version` option. This will install the specified version for every `@medusajs/*` package in the Medusa and Next.js Starter projects. For example:
```bash
npx create-medusa-app@latest my-medusa-store --version 2.3.0
```
This will create a new Medusa project with the `2.3.0` version.
---
## Troubleshooting
<DetailsList
@@ -612,7 +612,7 @@ export const subscriptionWorkflow1Highlights = [
["16", "createWorkflow", "Create a workflow."],
["23", "transform", "Set the customer ID to an empty string if not provided."],
["28", "when", "If email is not set, try to retrieve customer by its ID."],
["47", "transform", "Set the email either to the one in the input or the specified customer's email."],
["48", "transform", "Set the email either to the one in the input or the specified customer's email."],
]
```ts title="src/workflows/create-restock-subscription/index.ts" highlights={subscriptionWorkflow1Highlights}
@@ -650,6 +650,7 @@ export const createRestockSubscriptionWorkflow = createWorkflow(
return !customer.email
}
).then(() => {
// @ts-ignore
const { data } = useQueryGraphStep({
entity: "customer",
fields: ["email"],
@@ -519,14 +519,14 @@ export const createRestaurantHighlight = [
```ts title="src/workflows/restaurant/steps/create-restaurant.ts" highlights={createRestaurantHighlight} collapsibleLines="1-7" expandMoreLabel="Show Imports"
import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
import {
CreateRestaurantDTO,
CreateRestaurant,
} from "../../../modules/restaurant/types/mutations"
import { RESTAURANT_MODULE } from "../../../modules/restaurant"
import RestaurantModuleService from "../../../modules/restaurant/service"
export const createRestaurantStep = createStep(
"create-restaurant-step",
async function (data: CreateRestaurantDTO, { container }) {
async function (data: CreateRestaurant, { container }) {
const restaurantModuleService: RestaurantModuleService = container.resolve(
RESTAURANT_MODULE
)
@@ -602,7 +602,7 @@ export const createRestaurantRouteHighlights = [
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
import { MedusaError } from "@medusajs/framework/utils"
import {
CreateRestaurantDTO,
CreateRestaurant,
} from "../../modules/restaurant/types/mutations"
import {
createRestaurantWorkflow,
@@ -610,7 +610,7 @@ import {
import { restaurantSchema } from "./validation-schemas"
export async function POST(req: MedusaRequest, res: MedusaResponse) {
const validatedBody = restaurantSchema.parse(req.body) as CreateRestaurantDTO
const validatedBody = restaurantSchema.parse(req.body) as CreateRestaurant
if (!validatedBody) {
return MedusaError.Types.INVALID_DATA
@@ -2449,9 +2449,6 @@ export const setStepSuccessStep = createStep(
workflowId: handleDeliveryWorkflowId,
},
stepResponse: new StepResponse(updatedDelivery, updatedDelivery.id),
options: {
container,
},
})
}
)
@@ -2500,9 +2497,6 @@ export const setStepFailedStep = createStep(
workflowId: handleDeliveryWorkflowId,
},
stepResponse: new StepResponse(updatedDelivery, updatedDelivery.id),
options: {
container,
},
})
}
)
+3 -3
View File
@@ -99,7 +99,7 @@ export const generatedEditDates = {
"app/commerce-modules/user/user-creation-flows/page.mdx": "2025-02-26T11:35:54.685Z",
"app/commerce-modules/user/page.mdx": "2025-04-17T08:48:17.980Z",
"app/commerce-modules/page.mdx": "2025-04-17T08:48:34.855Z",
"app/create-medusa-app/page.mdx": "2025-01-16T10:00:25.975Z",
"app/create-medusa-app/page.mdx": "2025-07-14T08:51:06.654Z",
"app/deployment/admin/vercel/page.mdx": "2024-10-16T08:10:29.377Z",
"app/deployment/medusa-application/railway/page.mdx": "2025-04-17T08:28:58.981Z",
"app/deployment/storefront/vercel/page.mdx": "2025-05-20T07:51:40.712Z",
@@ -569,7 +569,7 @@ export const generatedEditDates = {
"app/medusa-cli/commands/start/page.mdx": "2025-04-08T11:56:15.522Z",
"app/medusa-cli/commands/telemtry/page.mdx": "2025-01-16T09:51:24.323Z",
"app/medusa-cli/commands/user/page.mdx": "2024-08-28T10:44:52.489Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2025-05-20T07:51:40.721Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2025-07-14T10:32:58.301Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateCustomerGroup/page.mdx": "2024-12-09T13:21:33.569Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateReservation/page.mdx": "2025-04-11T09:04:47.498Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCustomerGroup/page.mdx": "2025-05-20T07:51:41.059Z",
@@ -5565,7 +5565,7 @@ export const generatedEditDates = {
"references/modules/sales_channel_models/page.mdx": "2024-12-10T14:55:13.205Z",
"references/types/DmlTypes/types/types.DmlTypes.KnownDataTypes/page.mdx": "2024-12-17T16:57:19.922Z",
"references/types/DmlTypes/types/types.DmlTypes.RelationshipTypes/page.mdx": "2024-12-10T14:54:55.435Z",
"app/recipes/commerce-automation/restock-notification/page.mdx": "2025-06-26T12:40:40.542Z",
"app/recipes/commerce-automation/restock-notification/page.mdx": "2025-07-14T09:35:35.226Z",
"app/integrations/guides/shipstation/page.mdx": "2025-05-20T07:51:40.717Z",
"app/nextjs-starter/guides/customize-stripe/page.mdx": "2025-05-20T07:51:40.717Z",
"references/core_flows/Cart/Workflows_Cart/functions/core_flows.Cart.Workflows_Cart.listShippingOptionsForCartWithPricingWorkflow/page.mdx": "2025-06-25T10:11:28.364Z",