cloudflare-docs
cloudflare-docs copied to clipboard
[Pages] Include documentation for Node Version in nextjs/deploy-a-static-nextjs-site.mdx
Included additional documentation for updating node version for a next.js static site using .nvmrc
Summary
Additional documentation to update Node.js version used is Cloudflare builds by default.
Recent Next.js versions require a minimum Node.js version to be used in builds. Most other documentation on specifying Node.js version applies to a full Next.js site. For a static website, the simplest approach is to update the .nvmrc file as Cloudflare builds use nvm for detection of node version
Fixes https://github.com/cloudflare/cloudflare-docs/issues/22529
Screenshots (optional)
Documentation checklist
- [x ] The documentation style guide has been adhered to.