-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
60 lines (58 loc) · 1.56 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
import type { GatsbyConfig } from "gatsby";
const siteUrl = "https://devm33.com";
const imm = ["Cache-Control: public, max-age=31536000, immutable"];
const config: GatsbyConfig = {
graphqlTypegen: {
typesOutputPath: ".cache/gatsby-types.d.ts",
generateOnBuild: true,
documentSearchPaths: ["./gatsby-node.ts", "./src/utils/*.ts"],
},
siteMetadata: {
title: "Devraj Mehta",
description: "Devraj Mehta's website.",
siteUrl,
email: "[email protected]",
github: "https://github.com/devm33",
linkedin: "https://www.linkedin.com/in/devrajmehta/",
},
plugins: [
{
resolve: "gatsby-plugin-canonical-urls",
options: { siteUrl, stripQueryString: true },
},
"gatsby-plugin-image",
{
resolve: "gatsby-plugin-netlify",
options: { headers: { "/*.css": imm, "/*.js": imm, "/fonts/*": imm } },
},
"gatsby-plugin-sharp",
{
resolve: "gatsby-plugin-sitemap",
options: { createLinkInHead: false },
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "src",
path: `${__dirname}/src`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-images",
options: { maxWidth: 700 }, // Matches src/global.css article width
},
"gatsby-remark-copy-linked-files",
"gatsby-remark-katex",
"gatsby-remark-prismjs",
],
},
},
"gatsby-transformer-sharp",
"gatsby-transformer-yaml",
],
};
export default config;