🔧 config: (image) set minimumCacheTTL=60

:%s
This commit is contained in:
lytrankieio123
2021-09-14 14:33:08 +07:00
parent 8452638097
commit 208ddd146f

View File

@@ -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)
}, },
}) })