Update Node.js version on CloudFlare Pages

1 ยท Christian ยท March 12, 2023, 9:36 p.m.
Recently I upgraded to 11ty 2.0. Noticed a failing build on CloudFlare Pages, and found out I was using the default Node.js version, namely v14! ๐Ÿ˜… So I updated the package.json to use the latest LTS version of Node.js, which is 16. { "engines": { "node": ">= 16" }} and in the CloudFlare Pages dashboard, I updated the Node.js version to 16 in the environment variables tab. Alternatively, with a file called .node-version with the following content: 16.16 Here you can find more information ab...