Skip to content

Commit 295b378

Browse files
author
Amitkanswal
committed
added bugfix for .env and publish date blog
1 parent 5e07737 commit 295b378

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

data/contents.zip

354 Bytes
Binary file not shown.

env.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
create environment file name as .env.development.local,.env.production.local
33
and place following configuration data.
44

5-
REACT_APP_API_KEY=YOUR_API_KEY
5+
REACT_APP_APIKEY=YOUR_APIKEY
66
REACT_APP_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN
77
REACT_APP_ENVIRONMENT=YOUR_PUBLISHING_ENVIRONMENT
8-
REACT_APP_REGION=(OPTIONAL) Eg- eu
8+
# REACT_APP_REGION=(Only for eu region)
9+
#Eg-REACT_APP_REGION=eu

src/page/blog-post.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class BlogPost extends React.Component {
8383
{this.state.entry ? (
8484
<div>
8585
<span className="blogPostTimeStamp">
86-
{dateSetter(this.state.entry._owner.created_at)}
86+
{dateSetter(this.state.entry.publish_date)}
8787
</span>
8888
,
8989
<span className="blogpost-author">

0 commit comments

Comments
 (0)