-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
124 lines (118 loc) · 3.55 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";
const config: GatsbyConfig = {
siteMetadata: {
siteUrl: `https://wangqiao.me`,
title: "Qiao Wang",
author: {
name: "Qiao Wang",
bio: "谁非过客,花是主人",
email: "wangqiao11@hotmail.com",
},
social: {
twitter: `wangqiao11`,
github: `nodew`,
},
},
graphqlTypegen: true,
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/posts`,
ignore: [`**/\.png$`, `**/\.jpg$`, `**/\.jpeg$`, `**/\.gif$`],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `projects`,
path: `${__dirname}/projects`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `books`,
path: `${__dirname}/books`,
ignore: [`**/\.png$`, `**/\.jpg$`, `**/\.jpeg$`, `**/\.gif$`],
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.md`, `.mdx`],
mdxOptions: {
remarkPlugins: [],
rehypePlugins: [],
},
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800
}
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
// inlineCodeMarker: null,
aliases: {},
showLineNumbers: false,
noInlineHighlight: false,
languageExtensions: [],
},
},
],
},
},
{
resolve: `gatsby-plugin-typegen`,
options: {
outputPath: "src/__generated__/gatsby-types.d.ts",
emitSchema: {
"src/__generated__/gatsby-introspection.json": true,
"src/__generated__/gatsby-schema.graphql": true,
},
emitPluginDocument: {
"src/__generated__/gatsby-plugin-documents.graphql": true,
},
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-postcss`,
{
resolve: `gatsby-plugin-clarity`,
options: {
clarity_project_id: "fys6rjltq3",
enable_on_dev_env: false
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"G-E335734SN7",
],
gtagConfig: {
anonymize_ip: true
},
pluginConfig: {
head: false,
respectDNT: true,
exclude: [],
},
},
},
],
};
export default config;