From 3cb83e389433b66cb3525edc6fb721266b425677 Mon Sep 17 00:00:00 2001 From: Bayram Muhiyev Date: Tue, 27 Jul 2021 13:55:49 +0500 Subject: [PATCH] Redirect from homePage to searchPage --- next.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.js b/next.config.js index 515b2ae7c..6627e2e57 100644 --- a/next.config.js +++ b/next.config.js @@ -38,6 +38,15 @@ module.exports = withCommerceConfig({ }, ].filter(Boolean) }, + async redirects () { + return [ + { + source: '/', + destination: '/search', + permanent: true, + } + ] + } }) // Don't delete this console log, useful to see the commerce config in Vercel deployments