-
Notifications
You must be signed in to change notification settings - Fork 31
/
gatsby-config.js
79 lines (75 loc) · 1.91 KB
/
gatsby-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
'use strict'
const { URL } = require('url')
const path = require('path')
const {
STRIPE_KEY,
PAYMENT_API_KEY,
PAYMENT_ENDPOINT,
SITE_URL,
CANONICAL_URL,
CDN_URL
} = require('./env')
module.exports = {
trailingSlash: 'never',
siteMetadata: {
// Basic
name: 'Microlink',
author: 'Microlink HQ',
headline: 'Turns websites into data',
description:
'Enter a URL, receive information. Normalize metadata. Get HTML markup. Take a screenshot. Identify tech stack. Generate a PDF. Automate web scraping. Run Lighthouse.',
siteUrl: SITE_URL,
canonicalUrl: CANONICAL_URL,
twitter: '@microlinkhq',
image: new URL('logo/banner.jpeg', CDN_URL).toString(),
logo: new URL('logo/trim.png', CDN_URL).toString(),
// Slack previsualization
dataLabel1: 'API',
dataLabel2: 'Documentation',
dataValue1: 'api.microlink.io',
dataValue2: 'microlink.io/docs',
// additional
paymentApiKey: PAYMENT_API_KEY,
paymentEndpoint: PAYMENT_ENDPOINT,
stripeKey: STRIPE_KEY,
cdnUrl: CDN_URL
},
plugins: [
'gatsby-plugin-styled-components',
'gatsby-plugin-catch-links',
'gatsby-transformer-javascript-frontmatter',
{
resolve: 'gatsby-plugin-sass',
options: {
sassOptions: {
precision: 8
},
postCssPlugins: require('./postcss.config').plugins
}
},
'gatsby-transformer-json',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'data',
path: path.join(__dirname, 'data')
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: path.join(__dirname, 'src/pages'),
name: 'pages'
}
},
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: CANONICAL_URL
}
},
'gatsby-transformer-remark',
'gatsby-transformer-yaml',
'gatsby-plugin-advanced-sitemap'
].filter(Boolean)
}