Runtimes

The following runtimes are supported:

To select your preferred runtime ensure the following configuration is present in your nhost.toml file:

[functions.node]
version = 18

Package Managers

For Node.js, the following package managers are supported:

  1. npm
  2. yarn
  3. pnpm

To use one package manager or another, add the relevant lockfile (either package-lock.json for npm, yarn.lock for yarn or pnpm-lock.yaml for pnpm) to the functions folder or a parent folder. If multiple lockfiles are present, preference order is npm > pnpm > yarn.