#Issues Deploying Next.js 13 Project on Vercel with Dynamic Routes

7 messages · Page 1 of 1 (latest)

sterile shell
#

I am facing challenges deploying my Next.js 13 project on Vercel. The major hiccups seem to be around the blog/[id] dynamic route and the Server Side not fetchiing some data. Here's a summarized breakdown:

Vercel CLI Version: Using Vercel CLI 31.4.0.

. Runtime Issues:

  • Errors fetching users with the message "Failed to fetch users".
  • Errors fetching posts with the message "Document does not exist".
  • TypeError on accessing properties of undefined in blog/[id]/page.js.

git rep [https://github.com/matteo-dirollo/matteo-dirollo-next/blob/main/src/app/(public)/blog/page.jsx]

I would appreciate insights and potential fixes for these issues. Thanks in advance!

quasi pondBOT
#

🔎 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)

sterile shell
#

This happens on the dynamic route when I try to navigate to it within production. It is strange because when I'm on my local machine I can navigate to it

barren vessel
sterile shell
#

unfortunately it didn't work