0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update Cloudflare Pages guide (#2345)

See https://developers.cloudflare.com/pages/framework-guides/astro
This commit is contained in:
Jacob Rask 2022-01-10 22:59:21 +01:00 committed by GitHub
parent 296634b518
commit 263e39a94d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,8 +377,8 @@ Then, set up a new project on Cloudflare Pages.
Use the following build settings:
- **Framework preset**: `None` (As of this writing, Astro is not listed.)
- **Build command:** `astro build` or `npm run build`
- **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.