Using private NPM packages in with cf-pages

I'm working on a cf-pages that uses private npm packages, from it's own registry. To have it working locally for me, by having added a personal access token from github as NPM_AUTH_TOKEN in my .bashrc. And the registry is set in .npmrc in the repo, so that should be fine. But I don't know where to add the NPM_AUTH_TOKEN for the cf-pages to install and build?
5 Replies
Baran
Baran4mo ago
But isn’t it a secret?
Cyb3r-Jak3
Cyb3r-Jak34mo ago
Yes. You would see it to a secret type under environment variables
Baran
Baran4mo ago
thank you which one? There is 2 i added to both for safe measure, but i dont understand the difference
Cyb3r-Jak3
Cyb3r-Jak34mo ago
You should only need build

Did you find this page helpful?