Replies: 3 comments 2 replies
-
hey @Dwite, I am stuck exactly at the same place. have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
hey @Dwite |
Beta Was this translation helpful? Give feedback.
-
The issue is with Auth.js v5+ is that you cannot run any queries using middleware. Also it does actually work. I'm not using deno and still getting issue but the default Vercel stripe next auth template works out of the box. I think it's a matter of removing 'NEXT_PUBLIC_' from the env. It's prob an RLS policy not allowing secrets that aren't publicly exposed. I'm testing. |
Beta Was this translation helpful? Give feedback.
-
Issue with Deploying Supabase Edge Functions via Vercel
Overview
I am attempting to deploy Supabase Edge Functions via Vercel but encountering several issues that suggest a potential misalignment between Supabase's Edge Functions, which utilize Deno, and Vercel's deployment model. My main objective is to integrate Supabase's serverless functions seamlessly with my Vercel-hosted project, leveraging the benefits of edge computing. I'm seeking insights or solutions to overcome these hurdles.
Issues Encountered
TypeScript Error on Deployment:
Type error: Cannot find name 'Deno'
. This error suggests that the Deno runtime, which Supabase Edge Functions rely on, is not recognized in the Vercel deployment environment.Vercel Configuration for Custom Serverless Functions:
Error: The pattern "./supabase/functions/createStory/index.ts" defined in \
functions` doesn't match any Serverless Functions.` appears. It implies that the configuration is only applicable to Vercel's native serverless functions and does not extend support to Supabase Edge Functions structured for Deno.Questions
Is it feasible to deploy Supabase Edge Functions via Vercel?
Custom Environment Configuration:
functions
configuration invercel.json
?Alternatives or Workarounds:
Additional Context
I appreciate any insights, guidance, or shared experiences regarding this deployment challenge. Thank you in advance for your support!
Beta Was this translation helpful? Give feedback.
All reactions