cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[Pages] Include documentation for Node Version in nextjs/deploy-a-static-nextjs-site.mdx

Open schemburkar opened this issue 5 months ago • 2 comments

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

schemburkar avatar May 18 '25 08:05 schemburkar