Next.js Discord

Discord Forum

Getting Error while trying to access dynamic route on vercel deployment

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
Hi folks.

I am using vercel to deploy nextjs app and getting an error while trying to access a dynamic route. Things are working fine in local and pages are getting generated. API for getting course data is same in local and on vercel.

Attaching the screenshot of the sample code and error here.

Note: "next": "13.1.6" (local)

7 Replies

what does the CourseDescription.getCourseDescription() do?
West African LionOP
@Ray It fetches the course related content based on the slug
West African LionOP
yeh, fetching own api
its hosted on different server all togetger
you should fetch the data directly in the getStaticProps