Closed lilgujj closed 3 years ago
solved this by changing:
from:
.filter((value) => typeof value === 'string'),
to:
.filter((value) => value !== '/'),
guess its because of [...pageUri] should not render the '/' route? becausei have an seperate index.tsx thats only for the homepage? sorry for inconvenience :)
Hey @lilgujj, I'm glad you solved this. I'll close this issue, but if you experience further issues please feel free to open a new issue.
Hello! When trying to use your example code to render static pages i get this error: Error: The provided path
/
does not match the page:/[...pageUri]
.code:
i use contentNodes to fetch the data that looks like this:
getStaticProps looks like this:
related issue: #616