-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
68 lines (64 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
61
62
63
64
65
66
67
68
import type { GatsbyConfig } from 'gatsby'
import path from 'path'
const plugins: (string | object)[] = [
'gatsby-plugin-sass',
{
resolve: 'gatsby-plugin-eslint',
options: {
rulePaths: [path.join(process.cwd(), 'node_modules', 'gatsby', 'dist', 'utils', 'eslint-rules')],
stages: ['develop'],
extensions: ['ts', 'tsx'],
exclude: ['node_modules', '.cache', 'public', '.husky', '.vscode'],
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images/`,
},
},
'gatsby-plugin-graphql-codegen',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Keid's Portfolio",
short_name: "Keid's Portfolio",
start_url: '/',
background_color: '#3bc6ce',
theme_color: '#3bc6ce',
display: 'standalone',
icon: 'src/images/favicon.png',
},
},
]
if (process.env.NODE_ENV === 'production') {
plugins.unshift({
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingIds: ['G-1XKDX2T7BF'],
pluginConfig: {
head: true,
},
},
})
plugins.unshift({
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://keisukesasaki.com',
policy: [{ userAgent: '*', disallow: '/' }], // private
},
})
}
const config: GatsbyConfig = {
siteMetadata: {
title: "Keid's Portfolio",
description: "Keid's Portfolio",
siteUrl: 'https://keisukesasaki.com',
},
plugins,
}
export default config