forked from crowetic/commerce
Test rewrites
This commit is contained in:
parent
0e298e8e57
commit
f54f830464
@ -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=/',
|
||||
|
Loading…
x
Reference in New Issue
Block a user