-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
83 lines (82 loc) · 2.02 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
80
81
82
83
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: `kunapot.com`,
author: `aofleejay`,
siteUrl: 'https://kunapot.com',
keywords: ['เล่าหนังสือ', 'เล่าเกม'],
social: {
medium: 'https://medium.com/@aofleejay/latest',
github: 'https://github.com/aofleejay',
},
facebookAppID: '489184495212718',
disqus: {
shortName: 'aofleejay',
},
},
plugins: [
'gatsby-plugin-webpack-bundle-analyser-v2',
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [process.env.GA4_TAG_ID],
},
},
`gatsby-plugin-typescript`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blogs`,
path: `${__dirname}/src/blogs`,
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `aofleejay`,
short_name: `aofleejay`,
start_url: `/`,
background_color: `#209CEE`,
theme_color: `#209CEE`,
display: `minimal-ui`,
icon: `src/assets/favicon.png`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 700,
withWebp: true,
quality: 75,
},
},
{
resolve: 'gatsby-remark-embed-video',
options: {
width: '100%',
height: 330,
},
},
{
resolve: `gatsby-remark-highlight-code`,
},
],
},
},
'gatsby-plugin-dark-mode',
`gatsby-plugin-sitemap`,
`gatsby-plugin-postcss`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
],
}