4
0
forked from crowetic/commerce
commerce/next.config.js

30 lines
741 B
JavaScript
Raw Normal View History

2020-10-13 18:52:02 -05:00
module.exports = {
rewrites() {
return [
{
source: '/search/designers/:name',
destination: '/search',
},
{
source: '/search/designers/:name/:category',
destination: '/search',
},
{
// This rewrite will also handle `/search/designers`
source: '/search/:category',
destination: '/search',
},
2020-10-14 19:23:42 -05:00
{
source: '/checkout',
destination: '/api/bigcommerce/checkout',
},
2020-10-22 18:02:41 -05:00
// The logout is also an action so this route is not required, but it's also another way
// you can allow a logout!
{
source: '/logout',
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
},
2020-10-13 18:52:02 -05:00
]
},
}