-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
152 lines (151 loc) · 3.78 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
pathPrefix: "/",
title: "Esy - Your Personal Ai Essay Writer",
description: `Write your next paper with Esy, an AI assistant that learns your writing style to create original, authentic essays.`,
twitterUsername: `@esydotcom`,
image: "/images/esy-brand-bg.webp",
siteUrl: process.env.GATSBY_SITE_URL || "https://www.esy.com",
type: "website",
},
plugins: [
"gatsby-plugin-styled-components",
"gatsby-plugin-image",
"gatsby-plugin-mdx",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-root-import",
"gatsby-plugin-sass",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
linkImagesToOriginal: false,
maxWidth: 1500,
quality: 80,
},
},
],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
`${process.env.GOOGLE_ANALYTICS_TRACKING_ID}`,
],
pluginConfig: {
head: true,
respectDNT: true,
exclude: ["/preview/**", "/do-not-track/me/too/"],
},
},
},
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint: 'https://esy.us20.list-manage.com/subscribe/post?u=3b51c8da7ed629b563d12cc11&id=83cab3c485',
timeout: 3500,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/src/content`,
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: `Esy - Your Personal Ai Essay Writer`,
short_name: `Esy`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `standalone`,
icon: `static/favicon/favicon-512x512.png`, // Path to the main favicon
icons: [
{
src: `/favicon/favicon-192x192.png`,
sizes: `192x192`,
type: `image/png`,
},
{
src: `/favicon/favicon-512x512.png`,
sizes: `512x512`,
type: `image/png`,
},
{
src: `/favicon/favicon-32x32.png`,
sizes: `32x32`,
type: `image/png`,
},
{
src: `/favicon/favicon-16x16.png`,
sizes: `16x16`,
type: `image/png`,
},
{
src: `/favicon/apple-touch-icon.png`,
sizes: `180x180`,
type: `image/png`,
},
],
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://www.esy.com',
sitemap: 'https://www.esy.com/sitemap-0.xml',
policy: [{userAgent: '*', allow: '/'}]
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/images`,
},
__key: "images",
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'mdImages',
path: `${__dirname}/src/images/mdImages`,
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: `${__dirname}/src/svg/`,
},
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: `${__dirname}/src/pages/`,
},
__key: "pages",
},
{
resolve: 'gatsby-plugin-postcss',
options: {
postCssPlugins: [require('tailwindcss'), require('autoprefixer')],
},
}
],
};