hi there, thanks for that. in order to evaluate this a bit more, can you tell us a bit more information about what you are trying to do, how you are expecting it to work and what exaclty is happening when it “doesn’t work”? thanks!
It’s a bit hard to tell from just this code snippet, but I reckon your service components need a running server. It would, at least, explain why your code is running locally and on vercel, but not on Netlify. Here’s more information on what Netlify can and cannot do:
what you are trying to do?
ans:- Im basically creating a static website, it has 4 pages those are home, about, blog and blog details. I’m using nextjs, and the blog detail page is an ISG/ISR page, 100 of pages under in blog details page. So the page is a [slug].js file.
how you are expecting it to work?
ans: - The website content setting up with storyblok, so when I updating the contents in storyblok admin page the changes should reflecting in our netlify server. because I’ve added nextjs revalidate prop for this.
what exaclty is happening when it “doesn’t work”?
ans:- The issue when I updating the contents in storyblok admin the changes not reflecting in slug page. but the other pages working fine (home, about, blog). In dev mode the changes reflecting that’s why I mentioned this working in local but not in build mode. But in vercel the changes reflecting in slug page as expecting.
When reading some comments in issue page I realise ISR/ISG doesn’t fully support by netlify.
Thanks for following up! I see that this thread has been a bit quiet since you last wrote in. My apologies for the delay. Are you still encountering obstacles here? Please let me know if you are, and I will bring this back to the Support Team again. I appreciate your patience.
Hello @hillary thanks for the support, yes Im still facing the issue. So to remove the SSR working I have applied the value as false on revalidate props in getStaticProps and fallback props in getStaticPaths functions. Now the SSR will not work, this is out of my requirement. It will be good if you solve the SSR issue in your Essential Next.js package.
Thanks for following up! I have spoken with our NextJS folks, and they would like you to bring this conversation to our new Beta Plugin space: v4 beta release · Discussion #706 · netlify/netlify-plugin-nextjs · GitHub. There are some great conversations happening there, and you will be able to work more closely with the experts who wrote the plugin. Let me know if this works for you!