On JSS 21.1 with SXA, the Next.js custom error pages functionality isn't working. I've configured it per the documentation.
I've tracked it down to the GraphQL query.
Request:
query ErrorPagesQuery($siteName: String!, $language: String!) {
site {
siteInfo(site: $siteName) {
errorHandling(language: $language) {
notFoundPage {
rendered
}
notFoundPagePath
serverErrorPage {
rendered
}
serverErrorPagePath
}
}
}
}
Response
{
"data": {
"site": {
"siteInfo": {
"errorHandling": {
"notFoundPage": null,
"notFoundPagePath": "/404-page",
"serverErrorPage": null,
"serverErrorPagePath": "/500-page"
}
}
}
}
}
So it looks like it is resolving the custom error page paths but not able to render them.