docs: add vale rule for Next.js Starter Storefront (#12517)

This commit is contained in:
Shahed Nasser
2025-05-16 17:30:15 +03:00
committed by GitHub
parent 5cd4ff6fe7
commit a1f2e5cb52
30 changed files with 22512 additions and 22510 deletions

View File

@@ -90,7 +90,7 @@ Start by installing the Medusa application on your machine with the following co
npx create-medusa-app@latest
```
You will first be asked for the project's name. Then, when asked whether you want to install the [Next.js starter storefront](../../../nextjs-starter/page.mdx), choose "Yes."
You will first be asked for the project's name. Then, when asked whether you want to install the [Next.js Starter Storefront](../../../nextjs-starter/page.mdx), choose "Yes."
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name and the Next.js Starter Storefront in a separate directory with the `{project-name}-storefront` name.
@@ -681,7 +681,7 @@ export async function GET(req: NextRequest, { params }: { params: Params }) {
You add a `GET` route handler that receives the cart ID as a path parameter. In the route handler, you:
- Try to retrieve the cart from the Medusa application. The `retrieveCart` function is already available in the Next.js storefront. If the cart is not found, you return a 404 response.
- Try to retrieve the cart from the Medusa application. The `retrieveCart` function is already available in the Next.js Starter Storefront. If the cart is not found, you return a 404 response.
- Set the cart ID in a cookie using the `setCartId` function. This is also a function that is already available in the storefront.
- Redirect the customer to the cart page. You set the country code in the URL based on the cart's shipping address or region.

View File

@@ -53,7 +53,7 @@ By following this tutorial, you'll learn how to:
- Install and set up Medusa.
- Define product reviews models and implement their management features in the Medusa server.
- Customize the Medusa Admin to allow merchants to view and manage product reviews.
- Customize the Next.js storefront to display product reviews and allow customers to submit reviews.
- Customize the Next.js Starter Storefront to display product reviews and allow customers to submit reviews.
![Diagram showcasing the product review features in the storefront and admin](https://res.cloudinary.com/dza7lstvk/image/upload/v1741941058/Medusa%20Resources/reviews-overview_nufybf.jpg)
@@ -97,7 +97,7 @@ Start by installing the Medusa application on your machine with the following co
npx create-medusa-app@latest
```
You'll first be asked for the project's name. Then, when asked whether you want to install the [Next.js starter storefront](../../../nextjs-starter/page.mdx), choose Yes.
You'll first be asked for the project's name. Then, when asked whether you want to install the [Next.js Starter Storefront](../../../nextjs-starter/page.mdx), choose Yes.
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name, and the Next.js Starter Storefront in a separate directory with the `{project-name}-storefront` name.

View File

@@ -81,7 +81,7 @@ Start by installing the Medusa application on your machine with the following co
npx create-medusa-app@latest
```
You'll first be asked for the project's name. Then, when asked whether you want to install the [Next.js starter storefront](../../../nextjs-starter/page.mdx), choose Yes.
You'll first be asked for the project's name. Then, when asked whether you want to install the [Next.js Starter Storefront](../../../nextjs-starter/page.mdx), choose Yes.
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name, and the Next.js Starter Storefront in a separate directory with the `{project-name}-storefront` name.