Update Cloudflare pages to show gitlab support (#2357)
* Update Cloudflare pages to show gitlab support * Update deploy.md
This commit is contained in:
parent
18bb39f0d4
commit
cdee6e48bb
1 changed files with 2 additions and 2 deletions
|
@ -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 don’t 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 that’s compatible with Astro](https://docs.astro.build/installation#prerequisites), since the Cloudflare Pages default version probably won’t 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 that’s 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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue