4
0
forked from crowetic/commerce

Test rewrites

This commit is contained in:
Luis Alvarez 2020-10-27 03:50:37 -05:00
parent 0e298e8e57
commit f54f830464

View File

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