-
Notifications
You must be signed in to change notification settings - Fork 15
/
flags.js
36 lines (30 loc) · 901 Bytes
/
flags.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
/**
* @file
* Defines flags used to customise page behaviour.
*/
export default (environment = 'development') => ({
prod: environment === 'production',
analytics: environment === 'production',
googleAnalytics: environment === 'production',
ads: true,
onwardjourney: true,
shareButtons: true,
header: true,
footer: true,
dark: false, // Dark theme support requires g-components >= 2.2.x
mainImage: true,
/*
NOTE ABOUT COMMENTS AND ADS:
1)
For comments and ads to work locally you cannot run on
localhost, you need an ft.com hostname
Add the follow entry to the end of the hosts file
127.0.0.1 ig-local.ft.com
2)
In order for them to work the page needs a UUID.
If you are yet to create an article UUID the following test UUID
will be used
3a499586-b2e0-11e4-a058-00144feab7de
*/
comments: environment === 'production',
});