-
Notifications
You must be signed in to change notification settings - Fork 11
/
site.config.js
86 lines (81 loc) · 2.96 KB
/
site.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
require('dotenv').config({
path: `.env.${process.env.GATSBY_ACTIVE_ENV || 'next'}`,
});
const path = require('path');
const pkg = require('./package.json');
const requiredKeys = {
/**
* Used by `gatsby-plugin-google-analytics`. This value is provided through
* the `.env.*` file located the root of the project.
*/
googleAnalyticsTrackingId: process.env.GA_TRACKING_ID,
};
Object.entries(requiredKeys).forEach(([k, v]) => {
if (typeof v === 'undefined') {
throw new Error(`${k} not provided.`);
}
});
module.exports = Object.freeze({
...requiredKeys,
/** Used by Gatsby when creating production build of the website. */
pathPrefix: process.env.BUILD_PATH_PREFIX,
/** Number of posts to be shown on the first page of the blog index page. */
postsPerFirstPage: 6,
/** Number of posts to be shown on next blog post list pages. */
postsPerPage: 6,
/** MailChimp API endpoint */
mailChimpAPI:
'https://gmail.us3.list-manage.com/subscribe/post?u=fe25209984fd03f765b2af825&id=71fee7bcba',
/**
* Information about the website. Can be accessed by components by calling
* the `useSiteMetadata` custom React hook.
*/
siteMetadata: {
/** The name of the website. */
title: 'Project Unicorn',
titleShort: 'PU',
/** Release version of website. */
version: pkg.version,
/** Text to be shown in the landing page heading. */
tag: 'Build something awesome.',
/** The description of the website. */
description:
'Where developers from around the world partner to build and ship software for fun, for learning, or for profit.',
/** The url of the website. */
siteUrl: process.env.BUILD_SITE_URL,
logo: path.resolve(__dirname, 'src/images/logo.png'),
/*Email displayed on static pages */
contactEmail: '[email protected]',
/*Email displayed on static pages */
royEmail: '[email protected]',
/** Contains the project's social handles. */
social: {
/** The website's Facebook username, */
facebook: '',
/** The website's Instagram username. */
instagram: 'projectunic0rn',
/** The website's Twitter username. */
twitter: '@projectunicorn2',
/** The website's LinkedIn username. */
linkedin: 'proj-unicorn',
/** The website's Reddit username. */
reddit: 'projectUnicorn',
/** The website's GitHub username. */
github: 'projectunic0rn',
/** Slack invite link. */
slackInvite:
'//join.slack.com/t/project-unic0rn/shared_invite/enQtNjM5MzkwMjE2Mzg5LTNkOWVkNDQ0NTE3NWE1MmYzYjg5YjhiZTE1NTU0MTc3NzdmNmI3YTE5ZjZhYjgzNTA0ZDUyZjFmOTJlNTg5MGQ',
},
},
manifestOptions: {
/* eslint-disable @typescript-eslint/camelcase */
name: 'Project Unicorn',
short_name: 'Project Unicorn',
start_url: '/projects',
background_color: '#ffffff',
theme_color: '#ffffff',
display: 'minimal-ui',
icon: 'src/images/logo.png',
/* eslint-enable @typescript-eslint/camelcase */
},
});