Skip to content

Commit c19d833

Browse files
committed
Minor change in FB Env variable
1 parent 08b5173 commit c19d833

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

example/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
DISQUS_SHORTNAME=
22
FORM_URL=http://localhost:3000/api/project/5e81b8923d8c2d64d8549add/forms
3-
FB_APP_ID=
3+
GATSBY_FB_APP_ID=

example/src/@draftbox-co/gatsby-wordpress-theme-libre/components/disqus.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { DiscussionEmbed } from "disqus-react";
33

44
const Disqus = props => {
55
const disqusConfig = {
6-
shortname: process.env.DISQUS_SHORTNAME,
6+
shortname: process.env.GATSBY_DISQUS_SHORTNAME,
77
identifier: props.slug,
88
title: props.slug
99
};
1010

11-
return process.env.DISQUS_SHORTNAME ? (
11+
return process.env.GATSBY_DISQUS_SHORTNAME ? (
1212
<DiscussionEmbed {...disqusConfig} />
1313
) : (
1414
<></>

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

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

44
const FbComments = props => {
5-
return process.env.FB_APP_ID ? (
6-
<FacebookProvider appId={process.env.FB_APP_ID}>
5+
return process.env.GATSBY_FB_APP_ID ? (
6+
<FacebookProvider appId={process.env.GATSBY_FB_APP_ID}>
77
<Comments href={props.href}/>
88
</FacebookProvider>
99
) : (
1010
<></>
1111
);
12-
return ;
1312
};
1413

1514
export default FbComments;

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,11 +1918,6 @@
19181918
version "2.30.0"
19191919
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.30.0.tgz#7681c305a6f4341ae2579f5e3a75846c29eee9ce"
19201920
integrity sha512-9kDOxzp0K85UnpmPJqUzdWaCNorYYgk1yZmf4IKzpeTlSAclnFsrLjfwD9mQExctLoLoGAUXq1co+fbr+3HeFw==
1921-
dependencies:
1922-
"@types/eslint-visitor-keys" "^1.0.0"
1923-
"@typescript-eslint/experimental-utils" "2.30.0"
1924-
"@typescript-eslint/typescript-estree" "2.30.0"
1925-
eslint-visitor-keys "^1.1.0"
19261921

19271922
"@typescript-eslint/typescript-estree@2.30.0":
19281923
version "2.30.0"

0 commit comments

Comments
 (0)