Next.js Discord

Discord Forum

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

Unanswered
matteo posted this in #help-forum
Open in Discord
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!

5 Replies

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
@matteo 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
try downgrading to 13.4.12, i saw a similar question yesterday and downgrading to 13.4.12 worked
unfortunately it didn't work