Update Cloudflare Pages guide (#2345)
See https://developers.cloudflare.com/pages/framework-guides/astro
This commit is contained in:
parent
296634b518
commit
263e39a94d
1 changed files with 2 additions and 2 deletions
|
@ -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 that’s compatible with Astro](https://docs.astro.build/installation#prerequisites), since the Cloudflare Pages default version probably won’t work.
|
||||
|
||||
|
|
Loading…
Reference in a new issue