Is it possible to create global functions for reusable code between Edge Functions?

Hey, after looking at the docs regarding Edge Functions, I've seen that on the git repository there is a _shared directory, which includes corsHeaders.ts. I've tried to do some validations and create a client, return it from that file, but I get an error when building the Edge Function. Is there a way to host the environment on the Edge as well (1 extra directory), and import from there?

My function structure looks like:
supabase/functions/someFunction/index.ts
supabase/functions/someFunction/helpers.ts.

My specific question is there a workaround to store helpers.ts in supabase/functions instead of having to copy/paste the file in each of the EF I create?
Was this page helpful?