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