To provide access to private NPM packages during your build:
- Navigate to the Site Settings page, then click on the Environment Variables tab
- Add a custom npm auth token by adding
NPM_TOKENas an environment variable.
- Set a custom registry by adding
NPM_REGISTRYas an environment variable.
Gatsby Cloud will respect any
.npmrc files included in your repository.