Hello,
I am trying to setup Hugeicons' new NPM Token verification method and can get the package installed when passing the token directly into the npmrc file! However, I want to pass this though an enviorment variable to be more secure! But when I do, I am unable to install the package as it can't find the token.
# .env (tried .env \ .env.local \ .env.development)
// I've tried the following
NEXT_PUBLIC_NPM_TOKEN=thetoken
NPM_TOKEN=thetoken
NEXT_PUBLIC_NPM_TOKEN="thetoken"
NPM_TOKEN="thetoken"
NEXT_PUBLIC_NPM_TOKEN = "thetoken"
NPM_TOKEN = "thetoken"
# .npmrc
; I've tried the following
//registry.npmjs.org/:_authToken=$NEXT_PUBLIC_NPM_TOKEN
//registry.npmjs.org/:_authToken=$NPM_TOKEN
//registry.npmjs.org/:_authToken=${NEXT_PUBLIC_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
am I missing something?! Do I need to do anything within the next.config.js config file?!
Thanks,
Donald Louch