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_TOKEN
as an environment variable. - Set a custom registry by adding
NPM_REGISTRY
as an environment variable.
Gatsby Cloud will respect any .yarnrc
or .npmrc
files included in your repository.