Update next.config.js filter

Its a little more explicit using boolean than x => x
This commit is contained in:
Gonzalo Pozzo 2021-05-26 15:59:42 -07:00 committed by GitHub
parent 8fb6c7b206
commit e966c183bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ module.exports = withCommerceConfig({
source: '/search/:category', source: '/search/:category',
destination: '/search', destination: '/search',
}, },
].filter((x) => x) ].filter(Boolean)
}, },
}) })