forked from crowetic/commerce
Test rewrites
This commit is contained in:
parent
0e298e8e57
commit
f54f830464
@ -11,12 +11,20 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
rewrites() {
|
rewrites() {
|
||||||
return [
|
return [
|
||||||
|
{
|
||||||
|
source: '/:locale/checkout',
|
||||||
|
destination: '/api/bigcommerce/checkout',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: '/checkout',
|
source: '/checkout',
|
||||||
destination: '/api/bigcommerce/checkout',
|
destination: '/api/bigcommerce/checkout',
|
||||||
},
|
},
|
||||||
// The logout is also an action so this route is not required, but it's also another way
|
// The logout is also an action so this route is not required, but it's also another way
|
||||||
// you can allow a logout!
|
// you can allow a logout!
|
||||||
|
{
|
||||||
|
source: '/:locale/logout',
|
||||||
|
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: '/logout',
|
source: '/logout',
|
||||||
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
|
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user