Skip to content

Commit f1a16bd

Browse files
committed
Use environment variables for Algolia
1 parent a22b794 commit f1a16bd

File tree

6 files changed

+13
-52
lines changed

6 files changed

+13
-52
lines changed

components/AlgoliaSearch/AlgoliaSearchBox.component.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import algoliasearch from 'algoliasearch';
22
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch-dom';
33
import { useState } from 'react';
44

5-
import WOO_CONFIG from 'utils/config/nextConfig';
5+
import WOO_CONFIG from 'utils/config/nextConfig';
66
import SearchResults from './SearchResults.component';
77

88
const searchClient = algoliasearch(
9-
WOO_CONFIG.ALGOLIA_APP_ID,
10-
WOO_CONFIG.ALGOLIA_PUBLIC_API_KEY
9+
// WOO_CONFIG.ALGOLIA_APP_ID,
10+
// WOO_CONFIG.ALGOLIA_PUBLIC_API_KEY
11+
process.env.ALGOLIA_APP_ID,
12+
process.env.ALGOLIA_PUBLIC_API_KEY
1113
);
1214

1315
// https://www.algolia.com/doc/api-reference/widgets/instantsearch/react/

components/Cart/Cart.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Cart = () => {
2424
<svg
2525
className="fill-current"
2626
xmlns="http://www.w3.org/2000/svg"
27-
width="50"
27+
width="155"
2828
height="55"
2929
viewBox="0 0 30 30"
3030
aria-label="Handlekurv"

package-lock.json

Lines changed: 5 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-woocommerce",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Nextjs WooCommerce webshop",
55
"main": "index.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
"postcss": "^8.2.1",
2424
"react": "^17.0.1",
2525
"react-dom": "^17.0.1",
26-
"react-hook-form": "^6.13.0",
26+
"react-hook-form": "^6.13.1",
2727
"react-instantsearch-dom": "^6.8.2",
2828
"react-spring": "^8.0.27",
2929
"styled-components": "^5.2.1",

postcss.config.js.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

tailwind.config.js.example

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)