ANNOUNCEMENT

Gatsby is joining Netlify: Read the announcement post

Set a Node.js Version for Your Site

Introduction

You can specify a Node.js version for site in Gatsby Cloud in two different ways, by environment variable or .nvmrc file. If you don’t set a Node version, Gatsby cloud will use Node 18 by default.

Environment variable

You can set your Node.js version using the NODE_VERSION environment variable inside Gatsby Cloud. Read more about setting environment variables.

Using nvm

You can include a .nvmrc file in your project repository, and Gatsby Cloud will read the Node version from that file.

Example format:

Start building today on Gatsby Cloud!
Edit this page on GitHub
© 2023 Gatsby, Inc.