diff options
author | 2022-01-19 20:36:31 +0000 | |
---|---|---|
committer | 2022-01-19 15:36:31 -0500 | |
commit | cdee6e48bb30bc35a6b9135293c0b82eda8a9443 (patch) | |
tree | 8d7a7a51180521bb2470209eb5e906c15f3953ef /docs/src | |
parent | 18bb39f0d41662ef8104a2a19b78279c15106be2 (diff) | |
download | astro-cdee6e48bb30bc35a6b9135293c0b82eda8a9443.tar.gz astro-cdee6e48bb30bc35a6b9135293c0b82eda8a9443.tar.zst astro-cdee6e48bb30bc35a6b9135293c0b82eda8a9443.zip |
Update Cloudflare pages to show gitlab support (#2357)
* Update Cloudflare pages to show gitlab support
* Update deploy.md
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pages/en/guides/deploy.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/pages/en/guides/deploy.md b/docs/src/pages/en/guides/deploy.md index ac7ec14da..aef2887d6 100644 --- a/docs/src/pages/en/guides/deploy.md +++ b/docs/src/pages/en/guides/deploy.md @@ -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. |