Issues Deploying Next.js 13 Project on Vercel with Dynamic Routes
Unanswered
matteo posted this in #help-forum
matteoOP
I am facing challenges deploying my Next.js 13 project on Vercel. The major hiccups seem to be around the
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
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!
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
matteoOP
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
@joulev try downgrading to 13.4.12, i saw a similar question yesterday and downgrading to 13.4.12 worked
matteoOP
thank you I'll try that now
matteoOP
unfortunately it didn't work
matteoOP
This is the full npm run build log:
https://gist.github.com/matteo-dirollo/4e3aaa4ed05c59ea2d7fd1ad2aaa16d9
https://gist.github.com/matteo-dirollo/4e3aaa4ed05c59ea2d7fd1ad2aaa16d9