You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I ran into the same issue when trying to follow the Nextjs tutorial, chapter 7. I had setup a supabase on chapter 6 on Vercel, but when trying to use the sql imported from @vercel/postgres it wasn't working, I had to use db and initiate a client.
I think I ran into the same issue when trying to follow the Nextjs tutorial, chapter 7. I had setup a supabase on chapter 6 on Vercel, but when trying to use the sql imported from @vercel/postgres it wasn't working, I had to use db and initiate a client.
Activity
rogeriomoura commentedon Dec 2, 2024
I think I ran into the same issue when trying to follow the Nextjs tutorial, chapter 7. I had setup a supabase on chapter 6 on Vercel, but when trying to use the
sql
imported from @vercel/postgres it wasn't working, I had to usedb
and initiate a client.Next's tutorial for reference: https://nextjs.org/learn/dashboard-app/fetching-data
geekysaurabh001 commentedon Jan 1, 2025
This worked for Chapter 7.
In data.ts file:
And then in the same file, replace sql with client.sql everywhere.
Example: