Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/pages/_partials/_web-analytics-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _build:
---

1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/login).
2. From Account Home, select **Pages**.
2. From Account Home, select **Workers & Pages**.
3. Select your Pages project.
4. Go to **Settings** > **General** > and select **Enable Web Analytics**.

Expand Down
7 changes: 6 additions & 1 deletion content/pages/framework-guides/deploy-a-blazor-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ $ dotnet new gitignore

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** dashboard and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.

Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 3 additions & 3 deletions content/pages/framework-guides/deploy-a-brunch-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ $ brunch new proj -s es6

## Deploy with Cloudflare Pages

Deploy your site to Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In **Account Home**, select **Pages** > **Create a project**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, select *Brunch* as your **Framework preset**. Your selection will provide the following information.

{{<table-wrap>}}
Expand Down
6 changes: 3 additions & 3 deletions content/pages/framework-guides/deploy-a-docusaurus-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ $ npx create-docusaurus@latest my-website classic

## Deploy with Cloudflare Pages

Deploy your site to Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In **Account Home**, select **Pages** > **Create a project**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, select *Docusaurus* as your **Framework preset**. Your selection will provide the following information.

{{<table-wrap>}}
Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-gatsby-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ $ gatsby new my-gatsby-site https://github.com/alxshelepenok/gatsby-starter-lume

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of a lot of the framework guides have a section about deploying to pages, you might consider using partials to make future updates to this section easier. (I realize this is likely out of scope for this PR but just a rec for the future. 🙂)


1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-gridsome-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ $ gridsome create my-gridsome-website

## Deploy with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** dashboard and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, the following information will be provided:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, the following information will be provided:

<div>

Expand Down
8 changes: 6 additions & 2 deletions content/pages/framework-guides/deploy-a-hexo-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ Inside of `hello-hexo.md`, use Markdown to write the content of the article. You

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand All @@ -80,7 +84,7 @@ Every time you commit new code to your Hexo site, Cloudflare Pages will automati

Some Hexo themes or plugins have additional requirements for different Node.js versions. To use a specific Node.js version for Hexo:

1. Go to **your Pages project**.
1. Go to your Pages project.
2. Go to **Settings** > **Environment variables**.
3. Set the environment variable `NODE_VERSION` and a value of your required Node.js version (for example, `14.3`).

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-hono-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ You should be able to review your generated web application at `http://localhost

## Deploy with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-hugo-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ Inside of `hello-world.md`, add some initial content to create your post. Remove

## Deploy with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-jekyll-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ If you are migrating an existing Jekyll project to Pages, confirm that your `Gem

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
12 changes: 6 additions & 6 deletions content/pages/framework-guides/deploy-a-nextjs-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ Refer to [Next.js' documentation about the Edge Runtime](https://nextjs.org/docs

### Deploy with Cloudflare Pages

Deploy your site to Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In **Account Home**, select **Pages** > **Create a project**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, select _Next.js_ as your **Framework preset**. Your selection will provide the following information.

{{<table-wrap>}}
Expand Down Expand Up @@ -149,10 +149,10 @@ After creating your project, a new `my-app` directory will be generated using th

### Deploy with Cloudflare Pages

Deploy your site to Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In **Account Home**, select **Pages** > **Create a project**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, select _Next.js (Static HTML Export)_ as your **Framework preset**. Your selection will provide the following information.

{{<table-wrap>}}
Expand Down
5 changes: 4 additions & 1 deletion content/pages/framework-guides/deploy-a-nuxt-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ $ npm run dev

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**.
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.

You will be asked to authorize access to your GitHub account if you have not already done so. Cloudflare needs this so that it can monitor and deploy your projects from the source. You may narrow access to specific repositories if you prefer; however, you will have to manually update this list [within your GitHub settings](https://github.com/settings/installations) when you want to add more repositories to Cloudflare Pages.

Expand Down
6 changes: 3 additions & 3 deletions content/pages/framework-guides/deploy-a-pelican-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ This is the directory name that you will set in the build command.

## Deploy with Cloudflare Pages

Deploy your site to Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In **Account Home**, select **Pages** > **Create a project**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, select *Pelican* as your **Framework preset**. Your selection will provide the following information. The build command `pelican content` refers to the `content` folder you made earlier in this guide.

{{<table-wrap>}}
Expand Down
5 changes: 4 additions & 1 deletion content/pages/framework-guides/deploy-a-preact-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ $ cd your-project-name

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**.
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.

You will be asked to authorize access to your GitHub account if you have not already done so. Cloudflare needs this so that it can monitor and deploy your projects from the source. You may narrow access to specific repositories if you prefer; however, you will have to manually update this list [within your GitHub settings](https://github.com/settings/installations) when you want to add more repositories to Cloudflare Pages.

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-qwik-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ $ npm start

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-react-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ $ npm start

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-remix-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ $ npm run dev

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-solid-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ export default defineConfig({

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in **Set up builds and deployments**, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in **Set up builds and deployments**, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-sphinx-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ $ git push -u origin main

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
5 changes: 4 additions & 1 deletion content/pages/framework-guides/deploy-a-svelte-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ If you are using any adapter different from the default SvelteKit adapter, remem

## Deploy with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** and selecting **Create a project**.
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.

You will be asked to authorize access to your GitHub account if you have not already done so. Cloudflare needs this authorization to deploy your projects from your GitHub account. You may narrow Cloudflare's access to specific repositories. However, you will have to manually update this list [within your GitHub settings](https://github.com/settings/installations) when you want to add more repositories to Cloudflare Pages.

Expand Down
8 changes: 4 additions & 4 deletions content/pages/framework-guides/deploy-a-vite3-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ $ gh repo create
$ git push
```

To deploy your project with Pages:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
2. Go to **Pages** > **Create a project** > **Connect to git**.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select your new GitHub repository.
4. In the **Set up builds and deployments**, set `npm run build` as the **Build command**, and `dist` as the **Build output directory**.
5. Select **Environment variables (advanced)** > **+ Add variable** > configure a `NODE_VERSION` variable with a value of any version of Node greater than `14.18` -- this example uses `16`:

After completing configuration, select **Save and Deploy**.

You will see your first deploy pipeline in progress. Pages installs all dependencies and builds the project as specified. After you have deployed your project, it will be available at the `<YOUR_PROJECT_NAME>.pages.dev` subdomain. Find your project's subdomain in **Pages** > select your project > **Deployments**.
You will see your first deploy pipeline in progress. Pages installs all dependencies and builds the project as specified. After you have deployed your project, it will be available at the `<YOUR_PROJECT_NAME>.pages.dev` subdomain. Find your project's subdomain in **Workers & Pages** > select your Pages project > **Deployments**.

Cloudflare Pages will automatically rebuild your project and deploy it on every new pushed commit.

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-vue-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ $ vue create my-vue-app

## Deploying with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** dashboard and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, provide the following information:

<div>

Expand Down
6 changes: 5 additions & 1 deletion content/pages/framework-guides/deploy-a-vuepress-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Once this is done, a scaffolded documentation site will be created in the `docs`

## Deploy with Cloudflare Pages

Deploy your site to Pages by logging in to the [Cloudflare dashboard](https://dash.cloudflare.com/) > **Account Home** > **Pages** dashboard and selecting **Create a project**. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, the following information will be provided:
To deploy your site to Pages:

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
2. In Account Home, select **Workers & Pages** > **Create** > **Pages** > **Import from Git**.
3. Select the new GitHub repository that you created and, in the **Set up builds and deployments** section, the following information will be provided:

<div>

Expand Down
Loading