Connecting directly to Postgres
Because Edge Functions are a server-side technology, it's safe to connect directly to your database using any popular Postgres client. This means you can run raw SQL from your Edge Functions.
https://supabase.com/blog/infinite-scroll-with-nextjs-framer-motion