diff --git a/.gitignore b/.gitignore index ad18db5c1..226f313b7 100644 --- a/.gitignore +++ b/.gitignore @@ -18,10 +18,7 @@ node_modules .env.development.local .env.test.local .env.production.local -# next.config.js npm-debug.log* yarn-debug.log* yarn-error.log* - -design.html diff --git a/README.md b/README.md index 63cfae982..04b1bdb30 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,9 @@ The current release has been tested and is confirmed working with the following Import the products at `WP Dashboard > Tools > Import > WooCommerce products(CSV)` -4. Clone or fork the repo and modify `nextConfig.js` +4. Clone or fork the repo and modify `nextConfig.js`. + Then set the environment variables ALGOLIA_APP_ID and ALGOLIA_PUBLIC_API_KEY in Vercel. + See https://vercel.com/docs/environment-variables 5. Modify the values according to your setup 6. Start the server with `npm run dev` 7. Enable COD (Cash On Demand) payment method in WooCommerce diff --git a/components/Category/Categories.component.jsx b/components/Category/Categories.component.jsx index 233ad1689..ce2f85b8b 100644 --- a/components/Category/Categories.component.jsx +++ b/components/Category/Categories.component.jsx @@ -17,8 +17,7 @@ const Categories = ({ categories }) => { as={`/kategori/${slug}?id=${id}`} href="/kategori/[id]" > -
diff --git a/components/Title/PageTitle.component.jsx b/components/Title/PageTitle.component.jsx index 72467863f..cd2345353 100644 --- a/components/Title/PageTitle.component.jsx +++ b/components/Title/PageTitle.component.jsx @@ -2,13 +2,13 @@ const PageTitle = ({ title, marginleft }) => { return ( <> {marginleft ? ( -
+
{title}
) : ( -
+
{title} diff --git a/utils/config/nextConfig.js b/utils/config/nextConfig.js index f828ede9b..156def24c 100644 --- a/utils/config/nextConfig.js +++ b/utils/config/nextConfig.js @@ -4,11 +4,11 @@ export const WOO_CONFIG = { GRAPHQL_URL: 'https://woo.dfweb.no/graphql', - ALGOLIA_APP_ID: '7L9M5Y0B1K', - ALGOLIA_PUBLIC_API_KEY: '6f03421b21d2320c3d544777235debf1', ALGOLIA_INDEX_NAME: 'dfweb', - PLACEHOLDER_SMALL_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1600187495/Nextjs-Woocommerce/337_utsb7h.jpg', - PLACEHOLDER_LARGE_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg', + PLACEHOLDER_SMALL_IMAGE_URL: + 'https://res.cloudinary.com/duelisue0/image/upload/v1600187495/Nextjs-Woocommerce/337_utsb7h.jpg', + PLACEHOLDER_LARGE_IMAGE_URL: + 'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg', }; // Development details @@ -16,8 +16,6 @@ export const WOO_CONFIG = { /* export const WOO_CONFIG = { GRAPHQL_URL: 'http://localhost/wp/graphql', - ALGOLIA_APP_ID: '7L9M5Y0B1K', - ALGOLIA_PUBLIC_API_KEY: '925cc92373120f1bf477bb8ce0e71649', ALGOLIA_INDEX_NAME: 'dfweb', PLACEHOLDER_SMALL_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595540954/Nextjs-Woocommerce/placeholder-272-272_pg8t0z.jpg', PLACEHOLDER_LARGE_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg',