File tree 4 files changed +8
-17
lines changed
src/@draftbox-co/gatsby-theme-ghost-attila/components
4 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
- // loading env
2
- const activeEnv = process . env . NODE_ENV || 'development'
3
- console . log ( `Using environment config: '${ activeEnv } '` )
4
- require ( "dotenv" ) . config ( {
5
- path : `.env.${ activeEnv } ` ,
6
- } )
7
-
8
1
let siteConfig ;
9
2
let ghostConfig ;
10
3
@@ -92,7 +85,7 @@ if (process.env.GATSBY_HOTJAR_ID) {
92
85
resolve : `gatsby-plugin-hotjar` ,
93
86
options : {
94
87
id : process . env . GATSBY_HOTJAR_ID ,
95
- sv : process . env . GATSBY_HOTJAR_SV
88
+ sv : 6
96
89
}
97
90
} ) ;
98
91
}
Original file line number Diff line number Diff line change 20
20
"react-dom" : " ^16.13.0"
21
21
},
22
22
"dependencies" : {
23
- "@draftbox-co/gatsby-theme-ghost-attila" : " ^1.0.25 " ,
23
+ "@draftbox-co/gatsby-theme-ghost-attila" : " ^1.0.26 " ,
24
24
"dotenv" : " ^8.2.0" ,
25
25
"gatsby" : " 2.20.24" ,
26
26
"gatsby-plugin-crisp-chat" : " ^3.2.2" ,
Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ import React from "react";
2
2
import { FacebookProvider , Comments } from 'react-facebook' ;
3
3
4
4
const FbComments = props => {
5
- console . log ( { props } ) ;
6
- return process . env . FB_APP_ID ? (
7
- < FacebookProvider appId = { process . env . FB_APP_ID } >
5
+ return process . env . GATSBY_FB_APP_ID ? (
6
+ < FacebookProvider appId = { process . env . GATSBY_FB_APP_ID } >
8
7
< Comments width = { "100%" } href = { props . href } />
9
8
</ FacebookProvider >
10
9
) : (
11
10
< > </ >
12
11
) ;
13
- return ;
14
12
} ;
15
13
16
14
export default FbComments ;
Original file line number Diff line number Diff line change 1054
1054
lodash "^4.17.13"
1055
1055
to-fast-properties "^2.0.0"
1056
1056
1057
- "@draftbox-co/gatsby-theme-ghost-attila@^1.0.25 ":
1058
- version "1.0.25 "
1059
- resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-theme-ghost-attila/-/gatsby-theme-ghost-attila-1.0.25 .tgz#39af045f6c3ad4ba55ae790917fa54a4c8e9869c "
1060
- integrity sha512-PC86rTsvX/jpSItcMDUmwr8ZSGZUfqc+qxM4nvjIA7iiNGcBBv4l50VfImqtT49I/VRbmdGWd1x7sSsae/UNMw ==
1057
+ "@draftbox-co/gatsby-theme-ghost-attila@^1.0.26 ":
1058
+ version "1.0.26 "
1059
+ resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-theme-ghost-attila/-/gatsby-theme-ghost-attila-1.0.26 .tgz#b44405a9112c62b61b01a74801e1b2c115b16199 "
1060
+ integrity sha512-nWilbCk5BnMs7US/5g8o0qFiRI9vX0IjiOP6vLtEtgozDaVvH/CcOruk+r0d9tgkL2mAX4ZtjLRTFkvyTSAnNg ==
1061
1061
dependencies:
1062
1062
"@armada-inc/gatsby-plugin-amp" "^0.2.3"
1063
1063
"@tryghost/helpers" "^1.1.22"
You can’t perform that action at this time.
0 commit comments