forked from microlinkhq/www
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
86 lines (83 loc) · 2.06 KB
/
Copy pathgatsby-config.js
File metadata and controls
86 lines (83 loc) · 2.06 KB
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
'use strict'
const url = require('url')
const {
STRIPE_KEY,
PAYMENT_API_KEY,
PAYMENT_ENDPOINT,
GOOGLE_ANALYTICS_ID,
SITE_URL
} = require('./env')
module.exports = {
polyfill: false,
siteMetadata: {
siteName: 'Microlink',
siteUrl: SITE_URL,
title: 'Turns any website into data',
description:
'Extract structured data from any website. Enter an URL, receive information. Get relevant information from any link & easily create beautiful previews.',
image: url.resolve(SITE_URL, '/preview.jpg'),
video: url.resolve(SITE_URL, '/preview.mp4'),
gif: url.resolve(SITE_URL, '/preview.gif'),
logo: url.resolve(SITE_URL, '/logo-trim.png'),
twitter: '@microlinkio',
paymentEndpoint: PAYMENT_ENDPOINT,
paymentApiKey: PAYMENT_API_KEY,
stripeKey: STRIPE_KEY
},
plugins: [
`gatsby-plugin-react-next`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-catch-links`,
`gatsby-transformer-javascript-frontmatter`,
{
resolve: `gatsby-plugin-postcss-sass`,
options: {
postCssPlugins: [
require('postcss-focus'),
require('cssnano')({
autoprefixer: true,
mergeIdents: true,
zindex: true,
discardUnused: true
})
],
precision: 8
}
},
`gatsby-transformer-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/data/`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/pages/blog/`,
name: 'posts'
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: GOOGLE_ANALYTICS_ID
}
},
{
resolve: `gatsby-plugin-sitemap`
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: SITE_URL
}
},
`gatsby-plugin-remove-trailing-slashes`,
`gatsby-transformer-remark`,
`gatsby-transformer-yaml`,
`gatsby-plugin-netlify`
]
}