commerce/next.config.js

45 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-01-11 13:55:45 -03:00
module.exports = {
images: {
2021-02-04 13:23:44 +02:00
domains: ['cdn11.bigcommerce.com', 'cdn.shopify.com'],
},
2020-10-29 19:03:18 -05:00
i18n: {
locales: ['en-US', 'es'],
defaultLocale: 'en-US',
2020-10-27 03:49:24 -05:00
},
2020-10-13 18:52:02 -05:00
rewrites() {
return [
2020-10-27 03:38:28 -05:00
{
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: '/logout',
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
},
// Rewrites for /search
2020-10-13 18:52:02 -05:00
{
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',
},
]
},
2021-02-22 16:29:38 +02:00
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
2021-01-11 13:55:45 -03:00
}