Incremental Static Regeneration (ISR) not working for [slug].js file

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: