-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
124 lines (121 loc) · 3.58 KB
/
gatsby-config.ts
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import type {GatsbyConfig} from "gatsby";
require("dotenv").config({
path: `.env`,
})
const config: GatsbyConfig = {
siteMetadata: {
title: `PPX Blog`,
siteUrl: `https://blog.ppxa.link`,
description: `This is Xichen Pan's blog.`,
author: {
name: `Xichen Pan`,
summary: `who lives in Vancouver.`,
},
social: {
twitter: `GbdPpx`,
github: `xichen1`
},
},
flags: {
DEV_SSR: true
},
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: ["gatsby-plugin-postcss", "gatsby-plugin-image", "gatsby-plugin-sharp", "gatsby-transformer-sharp",
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
"@src": "src",
},
extensions: [
"js", "jsx", "ts", "tsx"
],
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: `blog`,
path: `${__dirname}/blog`,
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/assets/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `files`,
path: `${__dirname}/assets/files`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
],
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
{
resolve: 'gatsby-plugin-use-dark-mode',
options: {
classNameDark: 'dark',
classNameLight: 'light',
storageKey: 'darkMode',
minify: true,
},
},
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://blog.ppxa.link/',
sitemap: 'https://blog.ppxa.link/sitemap-index.xml',
policy: [{userAgent: '*', allow: '/'}]
}
},
{
resolve: 'gatsby-plugin-manifest',
options: {
"icon": "assets/images/profile-pic.png"
}
},
'gatsby-plugin-pnpm'
]
};
export default config;