mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 04:14: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: {
|
||||
// todo: replace domains for images
|
||||
domains: ['user-images.githubusercontent.com'],
|
||||
minimumCacheTTL: 60,
|
||||
},
|
||||
i18n: {
|
||||
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
|
||||
// to make the session cookies work.
|
||||
isVendure &&
|
||||
process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL && {
|
||||
source: `${process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL}/:path*`,
|
||||
destination: `${process.env.NEXT_PUBLIC_VENDURE_SHOP_API_URL}/:path*`,
|
||||
},
|
||||
process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL && {
|
||||
source: `${process.env.NEXT_PUBLIC_VENDURE_LOCAL_URL}/:path*`,
|
||||
destination: `${process.env.NEXT_PUBLIC_VENDURE_SHOP_API_URL}/:path*`,
|
||||
},
|
||||
].filter(Boolean)
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user