From b6bfc1bfded4c61e05c8fd1183e54963fbae7c7b Mon Sep 17 00:00:00 2001 From: Shodipo Ayomide <20538832+Developerayo@users.noreply.github.com> Date: Tue, 21 Apr 2020 13:52:58 +0100 Subject: [PATCH 1/6] [FIX] switch zeit now to Vercel Now for Gatsby deployment - Zeit just rebranded to now and this PR changes the deployment guidelines for deploying Gatsby to `Vercel Now` - Now still remains Now but ZEIT is no longer zeit but `Vercel` as of today --- docs/docs/deploying-to-now.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index 93a5b2a61ad7e..366553839e463 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -2,7 +2,7 @@ title: Deploying to Now --- -[ZEIT Now](https://zeit.co/now) is a [cloud platform for serverless deployment](https://zeit.co/docs/v2/getting-started/introduction-to-now/) that you can use to deploy your Gatsby projects and [alias them](https://zeit.co/docs/v2/domains-and-aliases/aliasing-a-deployment/) to your personal domain or a free `.now.sh` suffixed URL. +[ZEIT Now](https://vercel.com/now) is a [cloud platform for serverless deployment](https://vercel.com/docs/v2/getting-started/introduction-to-now/) that you can use to deploy your Gatsby projects and [alias them](https://vercel.com/docs/v2/domains-and-aliases/aliasing-a-deployment/) to your personal domain or a free `.now.sh` suffixed URL. This guide will show you how to get started in a few quick steps: @@ -22,7 +22,7 @@ npx gatsby new ## Step 2: Getting Now -You can use Now by installing [Now Desktop](https://zeit.co/docs/v2/getting-started/installation/#now-desktop), which also installs Now CLI and keeps it up-to-date automatically. +You can use Now by installing [Now Desktop](https://vercel.com/docs/v2/getting-started/installation/#now-desktop), which also installs Now CLI and keeps it up-to-date automatically. To install Now CLI quickly with npm, use the following: @@ -50,9 +50,9 @@ With Now CLI installed, we can go on to deploy our previously setup Gatsby proje This `now.json` file will allow us to do several things, specifically: -- Use the [latest Now 2.0 version](https://zeit.co/blog/now-2) of [the platform](https://zeit.co/docs/v2/platform/overview/) +- Use the [latest Now 2.0 version](https://vercel.com/blog/now-2) of [the platform](https://zeit.co/docs/v2/platform/overview/) - Set the project name to `my-gatsby-project` -- Use the [@now/static-build builder](https://zeit.co/docs/v2/deployments/official-builders/static-build-now-static-build/) to take the `package.json` file as an entrypoint and use the `public` directory as our content directory +- Use the [@now/static-build builder](https://vercel.com/docs/v2/deployments/official-builders/static-build-now-static-build/) to take the `package.json` file as an entrypoint and use the `public` directory as our content directory The final step is to add a script to the `package.json` which will build our application: @@ -77,4 +77,4 @@ That's all! Your application will now deploy, and you will receive a link simila ## References: -- [Deploying Gatsby with Now](https://zeit.co/examples/gatsby/) +- [Deploying Gatsby with Now](https://vercel.com/examples/gatsby/) From 6cbc934bc2b90640d482ae140fa6938af428b9c1 Mon Sep 17 00:00:00 2001 From: Shodipo Ayomide <20538832+Developerayo@users.noreply.github.com> Date: Tue, 21 Apr 2020 13:58:20 +0100 Subject: [PATCH 2/6] Broken link fix --- docs/docs/deploying-to-now.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index 366553839e463..4a3aabb9bfcf2 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -2,7 +2,7 @@ title: Deploying to Now --- -[ZEIT Now](https://vercel.com/now) is a [cloud platform for serverless deployment](https://vercel.com/docs/v2/getting-started/introduction-to-now/) that you can use to deploy your Gatsby projects and [alias them](https://vercel.com/docs/v2/domains-and-aliases/aliasing-a-deployment/) to your personal domain or a free `.now.sh` suffixed URL. +[Vercel Now](https://vercel.com/now) is a [cloud platform for serverless deployment](https://vercel.com/docs/v2/getting-started/introduction-to-now/) that you can use to deploy your Gatsby projects and [alias them](https://vercel.com/docs/v2/domains-and-aliases/aliasing-a-deployment/) to your personal domain or a free `.now.sh` suffixed URL. This guide will show you how to get started in a few quick steps: @@ -50,7 +50,7 @@ With Now CLI installed, we can go on to deploy our previously setup Gatsby proje This `now.json` file will allow us to do several things, specifically: -- Use the [latest Now 2.0 version](https://vercel.com/blog/now-2) of [the platform](https://zeit.co/docs/v2/platform/overview/) +- Use the [latest Now 2.0 version](https://vercel.com/blog/now-2) of [the platform](https://vercel.com/docs/v2/platform/overview/) - Set the project name to `my-gatsby-project` - Use the [@now/static-build builder](https://vercel.com/docs/v2/deployments/official-builders/static-build-now-static-build/) to take the `package.json` file as an entrypoint and use the `public` directory as our content directory @@ -77,4 +77,4 @@ That's all! Your application will now deploy, and you will receive a link simila ## References: -- [Deploying Gatsby with Now](https://vercel.com/examples/gatsby/) +- [Example Project](https://github.com/zeit/now/tree/master/examples/gatsby) From 16220325248cf5ced3057486eaecbf9af3ebc485 Mon Sep 17 00:00:00 2001 From: Shodipo Ayomide <20538832+Developerayo@users.noreply.github.com> Date: Tue, 21 Apr 2020 14:01:47 +0100 Subject: [PATCH 3/6] fix conflict caused by outdated fork --- docs/docs/deploying-to-now.md | 67 +++++------------------------------ 1 file changed, 9 insertions(+), 58 deletions(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index 4a3aabb9bfcf2..adde0c9380f3e 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -1,79 +1,30 @@ --- -title: Deploying to Now +title: Deploying to Vercel Now --- -[Vercel Now](https://vercel.com/now) is a [cloud platform for serverless deployment](https://vercel.com/docs/v2/getting-started/introduction-to-now/) that you can use to deploy your Gatsby projects and [alias them](https://vercel.com/docs/v2/domains-and-aliases/aliasing-a-deployment/) to your personal domain or a free `.now.sh` suffixed URL. +[Vercel Now](https://vercel.com/now) is a cloud platform for websites and serverless APIs, that you can use to deploy your Gatsby projects to your personal domain (or a free `.now.sh` suffixed URL). This guide will show you how to get started in a few quick steps: -## Step 1: Getting Started with Gatsby +## Step 1: Installing Now CLI -If you haven't already [set up a Gatsby project](https://www.gatsbyjs.org/docs/quick-start) you can do so by first installing Gatsby globally: - -```shell -npm install --global gatsby-cli -``` - -Then generate a project with the following command: - -```shell -npx gatsby new -``` - -## Step 2: Getting Now - -You can use Now by installing [Now Desktop](https://vercel.com/docs/v2/getting-started/installation/#now-desktop), which also installs Now CLI and keeps it up-to-date automatically. - -To install Now CLI quickly with npm, use the following: +To install their command-line interface with [npm](https://www.npmjs.com/), run the following command: ```shell npm install -g now ``` -## Step 3: Preparing to Deploy +## Step 2: Deploying -With Now CLI installed, we can go on to deploy our previously setup Gatsby project by first creating a `now.json` file with the following contents: - -```json:title=now.json -{ - "version": 2, - "name": "my-gatsby-project", - "builds": [ - { - "src": "package.json", - "use": "@now/static-build", - "config": { "distDir": "public" } - } - ] -} -``` - -This `now.json` file will allow us to do several things, specifically: - -- Use the [latest Now 2.0 version](https://vercel.com/blog/now-2) of [the platform](https://vercel.com/docs/v2/platform/overview/) -- Set the project name to `my-gatsby-project` -- Use the [@now/static-build builder](https://vercel.com/docs/v2/deployments/official-builders/static-build-now-static-build/) to take the `package.json` file as an entrypoint and use the `public` directory as our content directory - -The final step is to add a script to the `package.json` which will build our application: - -```json:title=package.json -{ - "scripts": { - ... - "now-build": "npm run build" - } -} -``` - -## Step 4: Deploying - -You can deploy your application by running the following in the root of the project directory, where the `now.json` is: +You can deploy your application by running the following command in the root of the project directory: ```shell now ``` -That's all! Your application will now deploy, and you will receive a link similar to the following: https://my-gatsby-project-fhcc9hnqc.now.sh/ +That's all! + +Your site will now deploy, and you will receive a link similar to the following: https://gatsby-functions.now-examples.now.sh ## References: From 706035589392ce610cd51507a9ba6df5d8bae744 Mon Sep 17 00:00:00 2001 From: Shodipo Ayomide <20538832+Developerayo@users.noreply.github.com> Date: Wed, 22 Apr 2020 15:06:19 +0100 Subject: [PATCH 4/6] Update docs/docs/deploying-to-now.md Co-Authored-By: Obinna Ekwuno --- docs/docs/deploying-to-now.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index adde0c9380f3e..9cdcb9d35c398 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -8,7 +8,7 @@ This guide will show you how to get started in a few quick steps: ## Step 1: Installing Now CLI -To install their command-line interface with [npm](https://www.npmjs.com/), run the following command: +To install the Vercel command-line interface with [npm](https://www.npmjs.com/), run the following command: ```shell npm install -g now From bd91f6a17bc4598c46808aa643db740c00306a25 Mon Sep 17 00:00:00 2001 From: Shodipo Ayomide <20538832+Developerayo@users.noreply.github.com> Date: Wed, 22 Apr 2020 15:07:35 +0100 Subject: [PATCH 5/6] chore: fix step 1 name --- docs/docs/deploying-to-now.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index 9cdcb9d35c398..c0578307ddccb 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -6,7 +6,7 @@ title: Deploying to Vercel Now This guide will show you how to get started in a few quick steps: -## Step 1: Installing Now CLI +## Step 1: Getting Started with Gatsby To install the Vercel command-line interface with [npm](https://www.npmjs.com/), run the following command: From 972438978c23f9fc078ee04d4c8e837a28adcaf7 Mon Sep 17 00:00:00 2001 From: Obinna Ekwuno Date: Wed, 22 Apr 2020 22:15:59 +0100 Subject: [PATCH 6/6] Updated README with link to offical announcement --- docs/docs/deploying-to-now.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/deploying-to-now.md b/docs/docs/deploying-to-now.md index c0578307ddccb..a2d9094d803c0 100644 --- a/docs/docs/deploying-to-now.md +++ b/docs/docs/deploying-to-now.md @@ -2,7 +2,9 @@ title: Deploying to Vercel Now --- -[Vercel Now](https://vercel.com/now) is a cloud platform for websites and serverless APIs, that you can use to deploy your Gatsby projects to your personal domain (or a free `.now.sh` suffixed URL). +[Vercel Now](https://vercel.com/now)(formally ZEIT) is a cloud platform for websites and serverless APIs, that you can use to deploy your Gatsby projects to your personal domain (or a free `.now.sh` suffixed URL). + +> Here is a link to the [offical announcement](https://vercel.com/blog/zeit-is-now-vercel) This guide will show you how to get started in a few quick steps: