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: Use the following build settings:
- **Framework preset**: `None` (As of this writing, Astro is not listed.) - **Framework preset**: `Astro`
- **Build command:** `astro build` or `npm run build` - **Build command:** `npm run build`
- **Build output directory:** `dist` - **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)**: 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.