diff --git a/next.config.js b/next.config.js index e17d3e5c4..7240d110a 100644 --- a/next.config.js +++ b/next.config.js @@ -41,7 +41,7 @@ module.exports = withCommerceConfig({ source: '/search/:category', destination: '/search', }, - ].filter((x) => x) + ].filter(Boolean) }, })