SupabaseS
Supabase2y ago
Will

How to share code between edge functions and nextjs app?

Let's say I have supabase js queries I use in my nextjs app, but also in my edge functions. I want to share the code between the two, but the issue is that the deno edge functions import supabasjs with the deno import, while the nextjs app does it with a directly installed npm package. When I try to build the nextjs app when using code inside of my supabase/functions folder, the build fails. Any way to make this work?
Was this page helpful?