[dev]
  functions = "./functions"

[build]
  functions = "./functions"

[dev]
  functions = "./functions"

[build]
  functions = "./functions"

[context.production]
  environment = { NODE_VERSION = "14.x" }

Update Node version in Netlify settings.
Update Node version in Netlify settings.
