external_node_modules
for netlify.toml
is supposed to fix this, but for some reason, it wouldn’t work, however, when I tried including the node_module paths, that fixed it.
# netlify.toml
[functions]
included_files = [
# For some reason this works to fix "bufferutil" error on
# Netlify Function and external_node_modules does not
"node_modules/bufferutil/**",
"node_modules/utf-8-validate/**"
]