From 3afdc4bb5ecbb8949596e702a7eb85e0c910a82c Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 23 Mar 2023 17:46:31 +0200 Subject: [PATCH] docs: fixes to next.js deployment guide to vercel (#3562) --- .../storefront/deploying-next-on-vercel.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/content/deployments/storefront/deploying-next-on-vercel.md b/docs/content/deployments/storefront/deploying-next-on-vercel.md index 4f359cdcd4..a1fa0a9340 100644 --- a/docs/content/deployments/storefront/deploying-next-on-vercel.md +++ b/docs/content/deployments/storefront/deploying-next-on-vercel.md @@ -25,7 +25,7 @@ It’s 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 you’re deploying through the Vercel website. :::note @@ -35,12 +35,18 @@ If you want to use another Git Provider, it’s 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 you’re deploying through the Vercel website. --- ## Step 1: Create GitHub Repository +:::note + +This step is only required if you’re deploying from the Vercel website. However, it’s 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, you’ll be redirected to the repository’s 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