From f54f830464401ef23f54dd74619eddc3efa3c4d2 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Tue, 27 Oct 2020 03:50:37 -0500 Subject: [PATCH] Test rewrites --- next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next.config.js b/next.config.js index e8c9ddb21..846dc61f3 100644 --- a/next.config.js +++ b/next.config.js @@ -11,12 +11,20 @@ module.exports = { }, rewrites() { return [ + { + source: '/:locale/checkout', + destination: '/api/bigcommerce/checkout', + }, { source: '/checkout', destination: '/api/bigcommerce/checkout', }, // The logout is also an action so this route is not required, but it's also another way // you can allow a logout! + { + source: '/:locale/logout', + destination: '/api/bigcommerce/customers/logout?redirect_to=/', + }, { source: '/logout', destination: '/api/bigcommerce/customers/logout?redirect_to=/',