Update Cloudflare pages to show gitlab support (#2357)

* Update Cloudflare pages to show gitlab support

* Update deploy.md
This commit is contained in:
Obinna Ekwuno 2022-01-19 20:36:31 +00:00 committed by GitHub
parent 18bb39f0d4
commit cdee6e48bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,7 @@ The action will work to deploy your app (watch its progress in your repo's Actio
You can deploy your Astro project on [Cloudflare Pages](https://pages.cloudflare.com). You need:
- A Cloudflare account. If you dont already have one, you can create a free Cloudflare account during the process.
- Your app code pushed to a [GitHub](https://github.com) repository.
- Your app code pushed to a [GitHub](https://github.com) or a [GitLab](https://about.gitlab.com/) repository.
Then, set up a new project on Cloudflare Pages.
@ -380,7 +380,7 @@ Use the following build settings:
- **Framework preset**: `Astro`
- **Build command:** `npm run build`
- **Build output directory:** `dist`
- **Environment variables (advanced)**: Add an environment variable with the **Variable name** of `NODE_VERSION` and a **Value** of a [Node version thats compatible with Astro](https://docs.astro.build/installation#prerequisites), since the Cloudflare Pages default version probably wont work.
- **Environment variables (advanced)**: Currently, Cloudflare Pages supports `NODE_VERSION = 12.18.0` in the Pages build environment by default. Astro requires `14.15.0`, `v16.0.0`, or higher. You can add an environment variable with the **Variable name** of `NODE_VERSION` and a **Value** of a [Node version thats compatible with Astro](https://docs.astro.build/installation#prerequisites) or by specifying the node version of your project in a `.nvmrc` or `.node-version` file.
Then click the **Save and Deploy** button.