Skip to content

Commit

Permalink
Fix NODE_VERSION to reflect build image updates (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrf0110 authored Apr 26, 2023
1 parent 087d393 commit 23aa2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Next, in the [Cloudflare Dashboard](https://dash.cloudflare.com/?to=/:account/pa
| ---------------------- | ----------------------------------------------------- |
| Build command | `npx @cloudflare/next-on-pages --experimental-minify` |
| Build output directory | `.vercel/output/static` |
- In the _Environment variables (advanced)_ section add a new variable named `NODE_VERSION` set to `16` or greater (`18` is not supported yet, See [Build Image Update Discussion](https://github.com/cloudflare/pages-build-image/discussions/1)).
- In the _Environment variables (advanced)_ section add a new variable named `NODE_VERSION` set to `16` or greater
- Click on _Save and Deploy_ to start the deployment (this first deployment won't be fully functional as the next step is also necessary)
- Go to the Pages project settings page (_Settings_ > _Functions_ > _Compatibility Flags_), add the `nodejs_compat` for both the production and preview and make sure that the **Compatibility Date** for both production and preview is set to at least `2022-11-30`.

Expand Down

0 comments on commit 23aa2df

Please sign in to comment.