From 85b659d78700400c50d9923b6231ae7ccf1a1907 Mon Sep 17 00:00:00 2001 From: Bel Curcio Date: Tue, 15 Jun 2021 19:59:11 -0300 Subject: [PATCH] cart enabled --- pages/cart.tsx | 7 ------- tsconfig.json | 5 +++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pages/cart.tsx b/pages/cart.tsx index 18529baae..3279301da 100644 --- a/pages/cart.tsx +++ b/pages/cart.tsx @@ -12,13 +12,6 @@ export async function getStaticProps({ locale, locales, }: GetStaticPropsContext) { - // Disabling page if Feature is not available - if (!process.env.COMMERCE_CART_ENABLED) { - return { - notFound: true, - } - } - const config = { locale, locales } const pagesPromise = commerce.getAllPages({ config, preview }) const siteInfoPromise = commerce.getSiteInfo({ config, preview }) diff --git a/tsconfig.json b/tsconfig.json index 911e7c149..0b71cd09b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,8 +22,8 @@ "@components/*": ["components/*"], "@commerce": ["framework/commerce"], "@commerce/*": ["framework/commerce/*"], - "@framework": ["framework/swell"], - "@framework/*": ["framework/swell/*"] + "@framework": ["framework/local"], + "@framework/*": ["framework/local/*"] } }, "include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"], @@ -31,6 +31,7 @@ "node_modules", "./framework/bigcommerce", "./framework/shopify", + "./framework/swell", "./framework/vendure", "./framework/saleor" ]