docs: fixes to next.js deployment guide to vercel (#3562)

This commit is contained in:
Shahed Nasser
2023-03-23 17:46:31 +02:00
committed by GitHub
parent d9678486a2
commit 3afdc4bb5e

View File

@@ -25,7 +25,7 @@ Its also assumed you already have the Medusa backend deployed, which the Next
### Required Accounts
- [Vercel Account](https://vercel.com)
- [GitHub Account](https://github.com/)
- [GitHub Account](https://github.com/): Only required if youre deploying through the Vercel website.
:::note
@@ -35,12 +35,18 @@ If you want to use another Git Provider, its possible to follow along with th
### Required Tools
- [Git CLI](../../development/backend/prepare-environment.mdx)
- [Git CLI](../../development/backend/prepare-environment.mdx): Only required if youre deploying through the Vercel website.
---
## Step 1: Create GitHub Repository
:::note
This step is only required if youre deploying from the Vercel website. However, its highly recommended to connect your Vercel project to a Git repository for a better developer experience.
:::
Before you can deploy your Next.js storefront, you need to create a GitHub repository and push the code base to it. To do that:
1. On GitHub, click the plus icon at the top right, then click New Repository.
@@ -53,7 +59,7 @@ The next step is to push the code to the GitHub repository you just created.
After creating the repository, youll be redirected to the repositorys page. On that page, you should see a URL that you can copy to connect your repository to a local directory.
Copy the link. Then, open your terminal in the directory that holds your Gatsby storefront codebase and run the following commands:
Copy the link. Then, open your terminal in the directory that holds your Next.js storefront codebase and run the following commands:
```bash
git init