From 65f7d3e9094ecfb101fa84162235ada32d2e3f3e Mon Sep 17 00:00:00 2001 From: Dennis Morello Date: Tue, 6 Apr 2021 11:00:38 +0200 Subject: [PATCH] refactor(config): chenged the way falsy values are filtered out from the rewrites array #259 --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }, })