Skip to content

Commit aedc914

Browse files
committed
fix: Env variables need to have GATSBY_ preappended.
1 parent ecbdc02 commit aedc914

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ jobs:
2727
# Run gatsby build
2828
- run: gatsby build
2929
env:
30-
MAP_GOOGLE_API_KEY: ${{ secrets.MAP_GOOGLE_API_KEY }}
31-
32-
# check env variable
33-
- run: echo $MAP_GOOGLE_API_KEY
34-
env:
35-
MAP_GOOGLE_API_KEY: ${{ secrets.MAP_GOOGLE_API_KEY }}
30+
GATSBY_MAP_GOOGLE_API_KEY: ${{ secrets.GATSBY_MAP_GOOGLE_API_KEY }}
3631

3732
- name: Deploy to Netlify
3833
uses: nwtgck/[email protected]

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
houseDogs: ['Ringo', 'Spot', 'Dingo', 'Rex'],
2424

2525
// Maps
26-
apiKey: process.env.MAP_GOOGLE_API_KEY,
26+
apiKey: process.env.GATSBY_MAP_GOOGLE_API_KEY,
2727

2828
mapLocation: {
2929
center: {

0 commit comments

Comments
 (0)