Skip to content

Commit 9991b1f

Browse files
authored
Try to make env variables work with Algolia
Try to make env variables work with Algolia
2 parents a3fbf79 + 74d82d5 commit 9991b1f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.env.local.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALGOLIA_APP_ID = "changeme"
2+
ALGOLIA_PUBLIC_API_KEY = "changeme"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ node_modules
1818
.env.development.local
1919
.env.test.local
2020
.env.production.local
21-
next.config.js
21+
# next.config.js
2222

2323
npm-debug.log*
2424
yarn-debug.log*

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="155"
27+
width="55"
2828
height="55"
2929
viewBox="0 0 30 30"
3030
aria-label="Handlekurv"

next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
env: {
3+
ALGOLIA_APP_ID: process.env.ALGOLIA_APP_ID,
4+
ALGOLIA_PUBLIC_API_KEY: process.env.ALGOLIA_PUBLIC_API_KEY,
5+
},
6+
};

0 commit comments

Comments
 (0)