Next.js Discord

Discord Forum

Getting 500 error on forced revalidate

Unanswered
Ocicat posted this in #help-forum
Open in Discord
Avatar
OcicatOP
I have a dynamic route for articles like /articles and we want pagination at /articles/[page].tsx and detail page at /articles/[slug].tsx.
I have a folder structure like /articles for landing page of articles and for pagination we hit to from browser on URL like articles/1/ but it actually hits the URL article/all/1. I have rewrite the code here to get this thing done.
its giving error of 500 when hit on revalidate api but only on vercel working perfect with local build.
note: my folder structure for listing and detail page, middleware and revalidate file snapshot is attached.
Image
Image
Image
Image

1 Reply

Avatar
Pacific sandlance
Bump