Open Rahulg321 opened 5 months ago
hey @Rahulg321 if you can try and delete your project from Vercel and redeploy it to Vercel. The issue is some cache error that pops up and I found that the best workaround for me is initiating the project from scratch. Hope it works for you too.
Link to the code that reproduces this issue
https://github.com/Rahulg321/Law-Offices-of-Destiny-Aigbe
To Reproduce
You can go to my code and start the application in dev mode and visit the blogs section. I am fetching my data using Prismic CMS and reading from search params so as to implement Pagination. The entire work flow works well in development mode but breaks during production when the side is deployed
These are the error logs I am receiving during production
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { digest: '163034583' }
Current vs. Expected behavior
The pagination works perfectly fine on development mode but breaks during production. I have included the error logs and full code details. I figure its due to the fact that I am using a mix of ssr and dynamic rendering.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, Output (export/standalone)
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
This is the code I am using. I am thinking the error is in the way createClient is initialized using Prismic and how catching is configured there.
This is how createClient is initialized from Prismic