#"Fetch failed" error in production mode

28 messages · Page 1 of 1 (latest)

crimson badge
#

My Fullstack app with prisma and postgress works in localhost but when i upload to vercel doesnt work, fetch failed

dawn lanternBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
exotic quiver
crimson badge
#

yes i have fetch("/api/user")

exotic quiver
#

yes then that doesn't work, see the linked page for more information

crimson badge
exotic quiver
crimson badge
exotic quiver
#

you fetch the data in a component and render it in another

exotic quiver
#

the file that caused the error is a different file

crimson badge
crimson badge
exotic quiver
#

give me a repro repo then

#

i can't say anything from this much information

crimson badge
#

do you want repo?

exotic quiver
#

reproduction repository that can reproduce this problem

crimson badge
#

i dont how to do this :/

exotic quiver
crimson badge
exotic quiver
#

provide me a minimal reproducible example that i can clone and run npm run dev on

#

see also #welcome message

exotic quiver
#

Well since you won’t help me help you I won’t be able to help, you need to wait for someone else to come and help