Has anyone used Vercels Edge functions (I think th...
# help
w
Has anyone used Vercels Edge functions (I think they are from CF) with the supabase client?
Copy code
Error: Dynamic require of "stream" is not supported
    at worker.js:46:22595
    at node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js (worker.js:46:320543)
    at worker.js:46:22757
    at node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/node-ponyfill.js (worker.js:46:338800)
    at worker.js:46:22757
    at node_modules/.pnpm/@supabase+gotrue-js@1.22.15/node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js (worker.js:46:339736)
    at worker.js:46:22757
    at node_modules/.pnpm/@supabase+gotrue-js@1.22.15/node_modules/@supabase/gotrue-js/dist/main/GoTrueApi.js (worker.js:46:341578)
    at worker.js:46:22757
    at node_modules/.pnpm/@supabase+gotrue-js@1.22.15/node_modules/@supabase/gotrue-js/dist/main/index.js (worker.js:46:365534)
I think the edge function has access to fetch, so neither node-fetch or cross-fetch should be required here.
n
Hello @wiesson! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
Interestingly enough, CF Pages builds just fine with Supabase JS.