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

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

No files matched your search

@@ -76,7 +76,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. You can also optionally choose to install the [Next.js starter storefront](../../../nextjs-starter/page.mdx).
You'll first be asked for the project's name. You can also optionally choose to install the [Next.js Starter Storefront](../../../nextjs-starter/page.mdx).
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name. If you chose to install the Next.js starter, it'll be installed in a separate directory with the `{project-name}-storefront` name.
@@ -39,7 +39,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. You can also optionally choose to install the [Next.js starter storefront](../../../nextjs-starter/page.mdx).
You will first be asked for the project's name. You can also optionally choose to install the [Next.js Starter Storefront](../../../nextjs-starter/page.mdx).
Afterward, the installation process will start, installing the Medusa application in a directory with your project's name. If you chose to install the Next.js starter, it'll be installed in a separate directory with the `{project-name}-storefront` name.
+1 -1
View File
@@ -67,7 +67,7 @@ If you don't have a Medusa application yet, you can install it with the followin
npx create-medusa-app@latest
```
You'll first be asked for the project's name. You can also optionally choose to install the [Next.js starter storefront](../../nextjs-starter/page.mdx).
You'll first be asked for the project's name. You can also optionally choose to install the [Next.js Starter Storefront](../../nextjs-starter/page.mdx).
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name. If you chose to install the Next.js starter, it'll be installed in a separate directory with the `{project-name}-storefront` name.
@@ -63,7 +63,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. You can also optionally choose to install the [Next.js starter storefront](../../../../nextjs-starter/page.mdx).
You'll first be asked for the project's name. You can also optionally choose to install the [Next.js Starter Storefront](../../../../nextjs-starter/page.mdx).
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name. If you chose to install the Next.js starter, it'll be installed in a separate directory with the `{project-name}-storefront` name.
@@ -67,7 +67,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. You can also optionally choose to install the [Next.js starter storefront](../../../../nextjs-starter/page.mdx).
You'll first be asked for the project's name. You can also optionally choose to install the [Next.js Starter Storefront](../../../../nextjs-starter/page.mdx).
Afterwards, the installation process will start, which will install the Medusa application in a directory with your project's name. If you chose to install the Next.js starter, it'll be installed in a separate directory with the `{project-name}-storefront` name.
@@ -174,8 +174,8 @@ Alternatively, you can build your own storefront using the Medusa APIs. This hea
<CardList items={[
{
href: "/nextjs-starter",
title: "Next.js Storefront",
text: "Learn how to install and customize the Next.js storefront.",
title: "Next.js Starter Storefront",
text: "Learn how to install and customize the Next.js Starter Storefront.",
icon: AcademicCapSolid,
},
{
@@ -67,9 +67,9 @@ 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 you're asked whether you want to install the Next.js storefront, choose `Y` for yes.
You'll first be asked for the project's name. Then, when you're asked whether you want to install the Next.js Starter Storefront, choose `Y` for 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 storefront in a directory with the `{project-name}-storefront` name.
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 directory with the `{project-name}-storefront` name.
<Note title="Why is the storefront installed separately?">
@@ -79,7 +79,7 @@ The Medusa application is composed of a headless Node.js server and an admin das
Once the installation finishes successfully, the Medusa Admin dashboard will open with a form to create a new user. Enter the user's credentials and submit the form.
Afterwards, you can log in with the new user and explore the dashboard. The Next.js storefront is also running at `http://localhost:8000`.
Afterwards, you can log in with the new user and explore the dashboard. The Next.js Starter Storefront is also running at `http://localhost:8000`.
<Note title="Ran into Errors?">
@@ -917,7 +917,7 @@ In the route handler function, you retrieve the cart to access it's `metadata` p
Then, you use the `createSubscriptionWorkflow` you created to create the order, and return the created order and subscription in the response.
In the next step, you'll customize the Next.js storefront, allowing you to test out the subscription feature.
In the next step, you'll customize the Next.js Starter Storefront, allowing you to test out the subscription feature.
### Further Reads
@@ -947,7 +947,7 @@ The account holder allows you to retrieve the saved payment method and use it to
---
## Step 9: Add Subscriptions to Next.js Storefront
## Step 9: Add Subscriptions to Next.js Starter Storefront
In this step, you'll customize the checkout flow in the [Next.js Starter storefront](../../../../nextjs-starter/page.mdx), which you installed in the first step, to: