supabase functions deploy and deno.json
I have created an Edge function with a
deno.json file following the documentation but when I use supabase functions deploy it does not work, deno.json is not deployed.
I need a reliable way to sync Edge functions.
It is a known issue ? Did I do something wrong ? Has the cli been updated since ?3 Replies
I'm not sure if the deno.json is meant to be deployed, what errors are you getting when you run supabase functions deploy?
I don't remember if I had an error but I would be worried if there is none.
Deno.json is designed to give a firiendly name to a specific package version to import, how would the edge function know which package/version to import if deno.json is not provided ?
In deno.json I say that "supabase" is "deno supabase javascript client 2.50" (I provide the specific url) and in the code of the edge function I write "import supabase".
If the file deno.json is not deployed which specific package would the edge function import when I write "import supabase" ?
i think when you deploy it fetches the correct package and bundles it up with the edge function, i haven't used it much so i'm not sure but i have functions deployed and deno.json file isn't in shown on the dashboard