File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ The current release has been tested and is confirmed working with the following
37
37
Import the products at ` WP Dashboard > Tools > Import > WooCommerce products(CSV) `
38
38
39
39
4 . Clone or fork the repo and modify ` nextConfig.js ` .
40
- Then set the environment variables ALGOLIA_APP_ID and ALGOLIA_PUBLIC_API_KEY in Vercel.
40
+
41
+ Then set the environment variables ALGOLIA_APP_ID and ALGOLIA_PUBLIC_API_KEY in Vercel or your preferred hosting solution.
42
+
41
43
See https://vercel.com/docs/environment-variables
44
+
42
45
5 . Modify the values according to your setup
43
46
6 . Start the server with ` npm run dev `
44
47
7 . Enable COD (Cash On Demand) payment method in WooCommerce
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ import WOO_CONFIG from 'utils/config/nextConfig';
6
6
import SearchResults from './SearchResults.component' ;
7
7
8
8
const searchClient = algoliasearch (
9
- // WOO_CONFIG.ALGOLIA_APP_ID,
10
- // WOO_CONFIG.ALGOLIA_PUBLIC_API_KEY
11
9
process . env . ALGOLIA_APP_ID ,
12
10
process . env . ALGOLIA_PUBLIC_API_KEY
13
11
) ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ import WOO_CONFIG from 'utils/config/nextConfig';
6
6
import SearchResults from './SearchResults.component' ;
7
7
8
8
const searchClient = algoliasearch (
9
- WOO_CONFIG . ALGOLIA_APP_ID ,
10
- WOO_CONFIG . ALGOLIA_PUBLIC_API_KEY
9
+ process . env . ALGOLIA_APP_ID ,
10
+ process . env . ALGOLIA_PUBLIC_API_KEY
11
11
) ;
12
12
13
13
/**
You can’t perform that action at this time.
0 commit comments