mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🔧 config: (image) set minimumCacheTTL=60
:%s
This commit is contained in:
parent
8452638097
commit
208ddd146f
@ -26,6 +26,7 @@ module.exports = withCommerceConfig({
|
|||||||
images: {
|
images: {
|
||||||
// todo: replace domains for images
|
// todo: replace domains for images
|
||||||
domains: ['user-images.githubusercontent.com'],
|
domains: ['user-images.githubusercontent.com'],
|
||||||
|
minimumCacheTTL: 60,
|
||||||
},
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
locales: ['en-US', 'es'],
|
locales: ['en-US', 'es'],
|
||||||
@ -46,10 +47,10 @@ module.exports = withCommerceConfig({
|
|||||||
// For Vendure, rewrite the local api url to the remote (external) api url. This is required
|
// For Vendure, rewrite the local api url to the remote (external) api url. This is required
|
||||||
// to make the session cookies work.
|
// to make the session cookies work.
|
||||||
isVendure &&
|
isVendure &&
|
||||||
process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL && {
|
process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL && {
|
||||||
source: `${process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL}/:path*`,
|
source: `${process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL}/:path*`,
|
||||||
destination: `${process.env.NEXT_PUBLIC_VENDURE_SHOP_API_URL}/:path*`,
|
destination: `${process.env.NEXT_PUBLIC_VENDURE_SHOP_API_URL}/:path*`,
|
||||||
},
|
},
|
||||||
].filter(Boolean)
|
].filter(Boolean)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user