From bed1efb48e966acc153c67c2b0b9eba80593cad1 Mon Sep 17 00:00:00 2001 From: Kate Tungusova Date: Fri, 25 Jun 2021 19:40:15 +0100 Subject: [PATCH 1/6] headers update --- .../migrations/migrating-from-netlify/index.md | 16 ++++++++-------- .../pages/src/content/platform/known-issues.md | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/products/pages/src/content/migrations/migrating-from-netlify/index.md b/products/pages/src/content/migrations/migrating-from-netlify/index.md index 1ba2970ad859e2b..6dc6cac29933b3a 100644 --- a/products/pages/src/content/migrations/migrating-from-netlify/index.md +++ b/products/pages/src/content/migrations/migrating-from-netlify/index.md @@ -6,33 +6,33 @@ pcx-content-type: tutorial # Migrating from Netlify to Pages -In this tutorial, you'll learn how to deploy your Netlify application to Cloudflare Pages. +In this tutorial, you will learn how to deploy your Netlify application to Cloudflare Pages. ## Finding your build command and build directory -To move your application to Cloudflare Pages, you'll need to find your build command and build directory. Cloudflare Pages will use this information to build your application and deploy it. +To move your application to Cloudflare Pages, find your build command and build directory. Cloudflare Pages will use this information to build and deploy your application. In your Netlify Dashboard, find the project that you want to deploy. It should be configured to deploy from a GitHub Repo. ![Selecting a site in the Netlify Dashboard](./netlify-deploy-1.png) -Inside of your site dashboard, select "Site Settings", and then "Build & Deploy". +Inside of your site dashboard, select **Site Settings**, and then **Build & Deploy**. ![Selecting Site Settings in site dashboard](./netlify-deploy-2.png) ![Selecting Build and Deploy in sidebar](./netlify-deploy-3.png) -In the "Build & deploy" tab, find the "Build settings" panel, which will have the **Build command** and **Publish directory** fields. Save these for deploying to Cloudflare Pages! In the below image, my **Build command** is `yarn build`, and my **Publish directory** is `build/`. +In the **Build & Deploy** tab, find the **Build settings** panel, which will have the **Build command** and **Publish directory** fields. Save these for deploying to Cloudflare Pages. In the below image, **Build command** is `yarn build`, and **Publish directory** is `build/`. ![Finding the "Build command" and "Publish directory" fields](./netlify-deploy-4.png) ## Creating a new Pages project -Once you've found your build directory and build command, you can move your project to Cloudflare Pages. +Once you have found your build directory and build command, you can move your project to Cloudflare Pages. The [Getting started guide](/getting-started) will show you how to add your GitHub project to Cloudflare Pages. @@ -40,6 +40,6 @@ If you choose to use a custom domain for your Pages, you can set it to the same ## Cleaning up your old application and assigning the domain -In your DNS settings for your domain, make sure that you've updated the CNAME record for your domain from Netlify to Cloudflare Pages. With your DNS record updated, requests will go to your Pages application. +In *DNS* on the Cloudflare dashboard, review that you have updated the CNAME record for your domain from Netlify to Cloudflare Pages. With your DNS record updated, requests will go to your Pages application. -Congrats! You've migrated your Netlify project to Cloudflare Pages. +With the above steps completed, you have successfully migrated your Netlify project to Cloudflare Pages. diff --git a/products/pages/src/content/platform/known-issues.md b/products/pages/src/content/platform/known-issues.md index f72aea71750085a..3ec8284d719261e 100644 --- a/products/pages/src/content/platform/known-issues.md +++ b/products/pages/src/content/platform/known-issues.md @@ -7,5 +7,6 @@ Here are some known bugs and issues that we're aware of with Cloudflare Pages: - pages.dev subdomains currently can't be changed. If you need to change your pages.dev subdomain, delete your project and create a new one. - Hugo builds automatically run an old version. To run the latest version of Hugo (for instance, 0.80.0), you'll need to set an environment variable. Set `HUGO_VERSION` to `0.80.0` or the Hugo version of your choice. - By default, we use Node 10 in the Pages build environment. If you need to use a newer Node version, see our [Build configuration page](https://developers.cloudflare.com/pages/platform/build-configuration) for configuration options. +- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does not support supports the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/pages/how-to/add-custom-http-headers). Having an issue that you don't see listed above? Let us know in the Cloudflare Workers Discord. Get your invite at [discord.gg/cloudflaredev](https://discord.gg/cloudflaredev), and share your bug report in the #pages-help channel. From 166002340ef196c4e263b2f0edfc5a84d8be47f9 Mon Sep 17 00:00:00 2001 From: Kate Tungusova Date: Mon, 28 Jun 2021 13:06:37 +0100 Subject: [PATCH 2/6] update 1 --- .../src/content/migrations/migrating-from-netlify/index.md | 4 ++-- products/pages/src/content/platform/known-issues.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/products/pages/src/content/migrations/migrating-from-netlify/index.md b/products/pages/src/content/migrations/migrating-from-netlify/index.md index 6dc6cac29933b3a..fb861830d704bd9 100644 --- a/products/pages/src/content/migrations/migrating-from-netlify/index.md +++ b/products/pages/src/content/migrations/migrating-from-netlify/index.md @@ -9,7 +9,7 @@ pcx-content-type: tutorial In this tutorial, you will learn how to deploy your Netlify application to Cloudflare Pages. ## Finding your build command and build directory @@ -40,6 +40,6 @@ If you choose to use a custom domain for your Pages, you can set it to the same ## Cleaning up your old application and assigning the domain -In *DNS* on the Cloudflare dashboard, review that you have updated the CNAME record for your domain from Netlify to Cloudflare Pages. With your DNS record updated, requests will go to your Pages application. +In **DNS** on the Cloudflare dashboard, review that you have updated the CNAME record for your domain from Netlify to Cloudflare Pages. With your DNS record updated, requests will go to your Pages application. With the above steps completed, you have successfully migrated your Netlify project to Cloudflare Pages. diff --git a/products/pages/src/content/platform/known-issues.md b/products/pages/src/content/platform/known-issues.md index 3ec8284d719261e..091e78af4a51b46 100644 --- a/products/pages/src/content/platform/known-issues.md +++ b/products/pages/src/content/platform/known-issues.md @@ -7,6 +7,6 @@ Here are some known bugs and issues that we're aware of with Cloudflare Pages: - pages.dev subdomains currently can't be changed. If you need to change your pages.dev subdomain, delete your project and create a new one. - Hugo builds automatically run an old version. To run the latest version of Hugo (for instance, 0.80.0), you'll need to set an environment variable. Set `HUGO_VERSION` to `0.80.0` or the Hugo version of your choice. - By default, we use Node 10 in the Pages build environment. If you need to use a newer Node version, see our [Build configuration page](https://developers.cloudflare.com/pages/platform/build-configuration) for configuration options. -- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does not support supports the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/pages/how-to/add-custom-http-headers). +- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does support the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/pages/how-to/add-custom-http-headers). Having an issue that you don't see listed above? Let us know in the Cloudflare Workers Discord. Get your invite at [discord.gg/cloudflaredev](https://discord.gg/cloudflaredev), and share your bug report in the #pages-help channel. From c7963fd18e55e940944c2c78501b523ecf58715f Mon Sep 17 00:00:00 2001 From: Kate Tungusova Date: Mon, 28 Jun 2021 13:26:11 +0100 Subject: [PATCH 3/6] updates --- .../src/content/migrations/migrating-from-netlify/index.md | 4 +++- products/pages/src/content/platform/known-issues.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/products/pages/src/content/migrations/migrating-from-netlify/index.md b/products/pages/src/content/migrations/migrating-from-netlify/index.md index fb861830d704bd9..c4c24cd02d02d31 100644 --- a/products/pages/src/content/migrations/migrating-from-netlify/index.md +++ b/products/pages/src/content/migrations/migrating-from-netlify/index.md @@ -9,7 +9,9 @@ pcx-content-type: tutorial In this tutorial, you will learn how to deploy your Netlify application to Cloudflare Pages. ## Finding your build command and build directory diff --git a/products/pages/src/content/platform/known-issues.md b/products/pages/src/content/platform/known-issues.md index 091e78af4a51b46..eed3f4eafc7a5bf 100644 --- a/products/pages/src/content/platform/known-issues.md +++ b/products/pages/src/content/platform/known-issues.md @@ -7,6 +7,6 @@ Here are some known bugs and issues that we're aware of with Cloudflare Pages: - pages.dev subdomains currently can't be changed. If you need to change your pages.dev subdomain, delete your project and create a new one. - Hugo builds automatically run an old version. To run the latest version of Hugo (for instance, 0.80.0), you'll need to set an environment variable. Set `HUGO_VERSION` to `0.80.0` or the Hugo version of your choice. - By default, we use Node 10 in the Pages build environment. If you need to use a newer Node version, see our [Build configuration page](https://developers.cloudflare.com/pages/platform/build-configuration) for configuration options. -- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does support the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/pages/how-to/add-custom-http-headers). +- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does support the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/how-to/add-custom-http-headers). Having an issue that you don't see listed above? Let us know in the Cloudflare Workers Discord. Get your invite at [discord.gg/cloudflaredev](https://discord.gg/cloudflaredev), and share your bug report in the #pages-help channel. From 48748aa9f89ae0a0f064f46ab44ddcf84f195120 Mon Sep 17 00:00:00 2001 From: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Date: Tue, 29 Jun 2021 15:44:38 +0100 Subject: [PATCH 4/6] Update products/pages/src/content/migrations/migrating-from-netlify/index.md Co-authored-by: Luke Edwards --- .../src/content/migrations/migrating-from-netlify/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/pages/src/content/migrations/migrating-from-netlify/index.md b/products/pages/src/content/migrations/migrating-from-netlify/index.md index c4c24cd02d02d31..1c2f913d1c249d3 100644 --- a/products/pages/src/content/migrations/migrating-from-netlify/index.md +++ b/products/pages/src/content/migrations/migrating-from-netlify/index.md @@ -10,7 +10,7 @@ In this tutorial, you will learn how to deploy your Netlify application to Cloud From 3d2613f85a6048db93bd95cd0bc1ef80492cea27 Mon Sep 17 00:00:00 2001 From: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Date: Tue, 29 Jun 2021 15:45:40 +0100 Subject: [PATCH 5/6] Update products/pages/src/content/migrations/migrating-from-netlify/index.md --- .../src/content/migrations/migrating-from-netlify/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/pages/src/content/migrations/migrating-from-netlify/index.md b/products/pages/src/content/migrations/migrating-from-netlify/index.md index 1c2f913d1c249d3..aeb78712e043143 100644 --- a/products/pages/src/content/migrations/migrating-from-netlify/index.md +++ b/products/pages/src/content/migrations/migrating-from-netlify/index.md @@ -10,7 +10,7 @@ In this tutorial, you will learn how to deploy your Netlify application to Cloud From d5c5dc9a0d8bc7d706ec89299abee073004183da Mon Sep 17 00:00:00 2001 From: Kate Tungusova <70746074+deadlypants1973@users.noreply.github.com> Date: Tue, 29 Jun 2021 15:46:42 +0100 Subject: [PATCH 6/6] Update products/pages/src/content/platform/known-issues.md --- products/pages/src/content/platform/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/pages/src/content/platform/known-issues.md b/products/pages/src/content/platform/known-issues.md index eed3f4eafc7a5bf..fc6bc3fdc8e03ca 100644 --- a/products/pages/src/content/platform/known-issues.md +++ b/products/pages/src/content/platform/known-issues.md @@ -7,6 +7,6 @@ Here are some known bugs and issues that we're aware of with Cloudflare Pages: - pages.dev subdomains currently can't be changed. If you need to change your pages.dev subdomain, delete your project and create a new one. - Hugo builds automatically run an old version. To run the latest version of Hugo (for instance, 0.80.0), you'll need to set an environment variable. Set `HUGO_VERSION` to `0.80.0` or the Hugo version of your choice. - By default, we use Node 10 in the Pages build environment. If you need to use a newer Node version, see our [Build configuration page](https://developers.cloudflare.com/pages/platform/build-configuration) for configuration options. -- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare does support the HTTP header customization feature, which can be done following the [Add custom HTTP headers guide](/how-to/add-custom-http-headers). +- For users migrating from Netifly, Cloudflare does not support Netlify's Forms and Serverless Functions features. Cloudflare Pages does not directly support HTTP header customization, but it can be done through Workers. Refer to the ["Add custom HTTP headers"](/how-to/add-custom-http-headers) guide for more information. Having an issue that you don't see listed above? Let us know in the Cloudflare Workers Discord. Get your invite at [discord.gg/cloudflaredev](https://discord.gg/cloudflaredev), and share your bug report in the #pages-help channel.