Optional catch-all segments not working for home page

I’m using this folder structure and not using generateStaticParams.


Issue is,
when I deploy it on Vercel, it shows blank white page on home page( / route). but it shows home page when I build it locally and run it.

Although, I found a work around for that.


Created copy of page under src>app and changed [[…slug]] to […slug]. and home page is working now but I don’t want to maintain 2 copy of page files.

I’m using contentful to create pages based on slug captured in …slug parameter.

Hi, @kartikjetani-altusgr!

Could you provide us a minimal reproducible example for us to dig deeper? Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.