Issue with fetch data function when deployed to Vercel

I am having an issue fetch data function when deployed to Vercel. The fetch data is working with localhost but I am getting an error that the data is not found. The route.ts is set to GET the data but it is returning an error in preview or prod mode.

Hi @brnsn, welcome to the Vercel Community!

I understand you’re doing it for the first time. Let’s start small:

  • Can you share the link to your public repository?
  • How did you set up the project locally?
  • How do you run the project? What commands and environment you use locally?
  • What is the project about?
  • What is the exact error that you get?

I recommend you to read through our How to Get Good Answers guide and add more details to your post.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.