SupabaseS
Supabaseโ€ข2mo ago
ewald

.npmrc files with env-variable replacement during edge-function deployment

Hey there ๐Ÿ™‚

I am using env-vars in my .npmrc file to authenticate against private repositories using the auth-token in a environment variable. How or are they or are they supported during edge-function deployment using supabase functions deploy?

I would say its a common pattern, so you dont have to alter or create a .npmrc file each deployment:
@username:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}


NPM does support it, Deno as well but I didn't find any documentation about this anywhere here other than that .npmrc files are supported in general. If they are supported by Deno itself, it should be fine but how do I apply my env-var?

Help would be appreciated ๐Ÿ™‚

โ€“ I have opened a discussion on GH as well: https://github.com/orgs/supabase/discussions/40531
GitHub
I am using env-vars in my .npmrc file to authenticate against private repositories using the auth-token in a environment variable. How or are they or are they supported during edge-function deploym...
Was this page helpful?