mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
fix: remove revalidate from cart requests
This commit is contained in:
@@ -33,10 +33,13 @@ export default async function medusaRequest(
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'x-publishable-key': MEDUSA_API_KEY
|
||||
},
|
||||
next: { revalidate: REVALIDATE_WINDOW }
|
||||
}
|
||||
};
|
||||
|
||||
if (!path.includes('/carts')) {
|
||||
options.next = { revalidate: REVALIDATE_WINDOW };
|
||||
}
|
||||
|
||||
if (payload) {
|
||||
options.body = JSON.stringify(payload);
|
||||
}
|
||||
|
Reference in New Issue
Block a user