From 0c087438e7e6e59ff52624e0e509f24a2c3bc71a Mon Sep 17 00:00:00 2001 From: Lucian Felix Ghita Date: Fri, 11 Aug 2023 12:15:12 +0200 Subject: [PATCH] downgrade next.js: fixes --- components/cart/actions.ts | 3 ++- components/product/variant-selector.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/cart/actions.ts b/components/cart/actions.ts index 3fb013194..bd22ccc69 100644 --- a/components/cart/actions.ts +++ b/components/cart/actions.ts @@ -14,7 +14,8 @@ export const addItem = async (variantId: string | undefined): Promise { - router.replace(optionUrl, { scroll: false }); + // TODO: Does now work under old Next.js + // router.replace(optionUrl, { scroll: false }); }} title={`${option.name} ${value}${!isAvailableForSale ? ' (Out of Stock)' : ''}`} className={clsx(