4. Use node.js v18
Superceded by [5. Use Node.js v16](0005-use-node-js-v16.md)
Context
11ty and the latest node-fetch
use incompatable module formats.
I’d like to not pin to outdated versions of a package.
Decision
Node.js 18 now supports fetch
. Use v18 LTS and built-in (experimental) fetch
.
Consequences
- Need to specify
NODE_VERSION
in Netlify environment variables. - Pin local environment to use v18
- Volta pin in current dev environment