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=/',