-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.config.js
48 lines (40 loc) · 1.4 KB
/
post.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* eslint-disable no-console */
import ArticleData from './data/data.json'
const projectName = process.env.GIT_REPO_NAME || ''
const content = ArticleData?.content ? ArticleData?.content[0] : {}
const BASEURL = process.env.BASE_URL_PRODUCTION || `/${projectName}`
const CAN_URL =
process.env.BASE_URL_PRODUCTION === ''
? `https://youthradio.github.io${BASEURL}`
: `https://interactive.yr.media${BASEURL}`
console.log(`BASEURL ${BASEURL}`)
console.log(`CAN_URL ${CAN_URL}`)
const POSTCONFIG = {
baseURL: BASEURL,
title: content?.headline,
author: content?.author,
publishDate: content?.date,
location: content?.location,
description: content?.seo_description,
tweetMessage: '@itsyrmedia',
url: CAN_URL,
featureImage: `${CAN_URL}/social.jpg`,
featureImagePath: 'images/template-feature-image',
featureImageDescription: 'People Protesting BLM',
featureImageCaption: '(Photo: Andersen Ross Photography Inc/Getty Images)',
wpPostSlug: 'north-carolina-vs-vaping-companies',
wpPostID: '60986',
// you might not need to change
fbAppID: '73080818131',
twitterHandler: '@itsyrmedia',
docs: [
{
name: 'static new template',
id: '1imJ0esjaeeq_rxh5XFTs9VCpsREOuTshZU1GRCswxN0',
},
],
dataPath: '../data/data.json',
POLLSERVER: 'https://ee51aej7u4.execute-api.us-west-2.amazonaws.com/latest',
POLLID: '6ac25af7-19bf-4888-a068-9be292bd37fa',
}
export default POSTCONFIG