mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
fix /search in i18n
This commit is contained in:
@@ -11,6 +11,14 @@ module.exports = {
|
||||
},
|
||||
rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/:locale/search',
|
||||
destination: '/search',
|
||||
},
|
||||
{
|
||||
source: '/:locale/search/:path*',
|
||||
destination: '/search',
|
||||
},
|
||||
{
|
||||
source: '/search/designers/:name',
|
||||
destination: '/search',
|
||||
@@ -25,11 +33,6 @@ module.exports = {
|
||||
source: '/search/:category',
|
||||
destination: '/search',
|
||||
},
|
||||
{
|
||||
// This rewrite will also handle `/search/designers`
|
||||
source: '/:locale/search/:category',
|
||||
destination: '/search',
|
||||
},
|
||||
{
|
||||
source: '/checkout',
|
||||
destination: '/api/bigcommerce/checkout',
|
||||
|
Reference in New Issue
Block a user