Different node version used between pre-rendered pages and "on the fly" page requests


I specified my Nuxt project node version to be v16.15.1 in netlify.toml, that version is used to pre-render a few pages without any issue. But when I try to query a page that was not pre-rendered, it’s computed by node v14.19.2 and it crashes since node 14 doesn’t have the array.at() function (introduced in node v16.6), so I get a 500 error .at() is not a function.

How can I make sure all pages are computed using the same node version, wether pre-rendered or not ?

thanks !

See the documentation here:

Thank you so much Nathan, I’d missed that part of the doc.