-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
91 lines (89 loc) · 2.08 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
84
85
86
87
88
89
90
91
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
const activeEnv = process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
require("dotenv").config({
path: `./.env.${activeEnv}`,
})
module.exports = {
siteMetadata: {
siteUrl: process.env.SITE_URL,
},
plugins: [
`gatsby-plugin-styled-components`,
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: ["Roboto:100i,100,300,300i,500", "Noto Sans JP:400,500"],
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/posts/blog`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `book`,
path: `${__dirname}/posts/book`,
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
}, ],
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve("./src/components/layout.jsx"),
},
},
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: process.env.SITE_URL,
policy: [{
userAgent: "*",
disallow: process.env.ROBOTS_POLICY_DISALLOW,
allow: process.env.ROBOTS_POLICY_ALLOW
}],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `大阪大学SF研究会公式サイト`,
short_name: `阪大SF研`,
description: `大阪大学SF研究会の公式サイトです`,
lang: `jp`,
icon: `static/logo1.jpg`,
start_url: `/`,
background_color: `#edeef1`,
theme_color: `#21B7F8`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_ID
}
}
],
}