Skip to content

Commit aca008e

Browse files
committed
Update facebook comments environment variable
1 parent 61e934b commit aca008e

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if (process.env.GATSBY_HOTJAR_ID) {
8383
resolve: `gatsby-plugin-hotjar`,
8484
options: {
8585
id: process.env.GATSBY_HOTJAR_ID,
86-
sv: process.env.GATSBY_HOTJAR_SV
86+
sv: 6
8787
}
8888
});
8989
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react-dom": "^16.13.0"
1616
},
1717
"dependencies": {
18-
"@draftbox-co/gatsby-wordpress-theme-libre": "^1.0.26",
18+
"@draftbox-co/gatsby-wordpress-theme-libre": "^1.0.27",
1919
"dotenv": "^8.2.0",
2020
"gatsby": "2.20.24",
2121
"gatsby-plugin-crisp-chat": "^3.2.2",

siteConfig.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ module.exports = {
2929
label: "Contact",
3030
url: "https://wp-libre-preview.draftbox.co/contact",
3131
},
32-
{
33-
label: "Contact1111",
34-
url: "https://wp-libre-preview.draftbox.co/contact111",
35-
},
3632
],
3733
},
3834
footer: {

src/@draftbox-co/gatsby-wordpress-theme-libre/components/fb-comments.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import React from "react";
22
import { FacebookProvider, Comments } from 'react-facebook';
33

44
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}>
87
<Comments width={"100%"} href={props.href}/>
98
</FacebookProvider>
109
) : (
1110
<></>
1211
);
13-
return ;
1412
};
1513

1614
export default FbComments;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,10 @@
958958
lodash "^4.17.13"
959959
to-fast-properties "^2.0.0"
960960

961-
"@draftbox-co/gatsby-wordpress-theme-libre@^1.0.26":
962-
version "1.0.26"
963-
resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-wordpress-theme-libre/-/gatsby-wordpress-theme-libre-1.0.26.tgz#8d86e6e7ebff71469190dcb90b2b870c41cb968e"
964-
integrity sha512-ezLpZasFLByU8JPNh84rb8AnjRNHKQ/nvh6zdsSVXDKibp7ZFh6FGhQXufmWTrDxGX2Pl6bGjYXmL324uaX25Q==
961+
"@draftbox-co/gatsby-wordpress-theme-libre@^1.0.27":
962+
version "1.0.27"
963+
resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-wordpress-theme-libre/-/gatsby-wordpress-theme-libre-1.0.27.tgz#aa0f0db24929332fd2da71e2288e3dd30ec50e38"
964+
integrity sha512-1XL/1HPQm65lIrIiZvFhVqaH/WSuC5Qoben0m83I3eMRzzx5/bNJUtEa5jN+uzW+T1rhQ3j1kbOhzjvIJQxkwQ==
965965
dependencies:
966966
"@armada-inc/gatsby-plugin-amp" "^0.2.3"
967967
"@reach/router" "^1.3.3"

0 commit comments

Comments
 (0)