2020-10-13 18:52:02 -05:00
|
|
|
module.exports = {
|
2020-10-21 21:28:28 -05:00
|
|
|
images: {
|
2020-10-21 22:02:02 -05:00
|
|
|
sizes: [320, 480, 820, 1200, 1600],
|
2020-10-21 21:28:28 -05:00
|
|
|
path: 'https://cdn11.bigcommerce.com/',
|
|
|
|
loader: 'bigCommerce',
|
|
|
|
},
|
2020-10-13 18:52:02 -05:00
|
|
|
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
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|