Replies: 1 comment
-
How does this fit into the branching feature? I.e., when the functions are deployed, where is the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Edge Functions now support importing NPM packages from private registries. You will need to deploy your functions using Supabase CLI version v1.207.9 or above to make use of this feature.
How to use packages from private registries
Create a
.npmrc
file withinsupabase/functions
. This will allow you to import the private packages into multiple functions. Alternatively, you can place the.npmrc
file directly insidesupabase/functions/function-name
directory.Add your registry details in the
.npmrc
file. Follow this guide to learn more about the syntax of npmrc files.After that, you can import the package directly in your function code or add it to the
import_map.json
(https://supabase.com/docs/guides/functions/import-maps#using-import-maps).To test your function locally, run
supabase functions serve
. When you're ready, you can deploy it to hosted platform by runningsupabase functions deploy function-name
Beta Was this translation helpful? Give feedback.
All reactions