Theo's Typesafe CultTTC
Theo's Typesafe Cult13mo ago
1 reply
Matt.

Data fetching & dynamic routing Next JS (newest)

So I'm building a store website, I'm trying to use Dynamic routing to do /bundles/[id]/[bundleName] like I did for the store dynamic routing. but when I go back to it, It's fetching the database (Supabase) but returning a json error
Console Error [ Server ] Error loading product: "JSON object requested, multiple (or no) rows returned"

I've tried using T3Chat to help & it just rewrites the useEffect with no change.

If anyone doesn't mind giving me a hand or directing me into the right direction, Thank you in advance! First time actually doing anything with dynamic routing, So I'm still learning
Was this page helpful?