Alister
Alister
DDeno
Created by Alister on 10/17/2024 in #help
How to import library in Edge Function ?
Hey Good afternoon ! I would like to export my function in an edge function to execute it in the back. I'm using supabase and I installed deno to do that. I would like to import my libraries like my initial function but deno it's different...
import { JWT } from 'google-auth-library';
import { GoogleSpreadsheet } from 'google-spreadsheet';


import { JWT } from "https://esm.sh/google-auth-library@8.7.0";
import { GoogleSpreadsheet } from "https://esm.sh/google-spreadsheet@3.3.0";
import { JWT } from 'google-auth-library';
import { GoogleSpreadsheet } from 'google-spreadsheet';


import { JWT } from "https://esm.sh/google-auth-library@8.7.0";
import { GoogleSpreadsheet } from "https://esm.sh/google-spreadsheet@3.3.0";
I need both of these libraries to my function but I don't how I'm suppose to import them. I read on forum, I need to use CDN for that but I don't know how it works :/ If someone could help me it will be wonderful ^^ Btw sorry for my english 😉
4 replies