Next.js getStaticProps params.slug is returning 'mockServiceWorker.js' as value

Viewed 8

The page works fine, as the initial params.slug value is fine, but another log happens in terminal with returns params as following: { slug: 'mockServiceWorker.js' } and because of that my build is failing in vercel, because I am getting data based on slug value from CMS. I can not make sense of this.

0 Answers
Related