-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
90 lines (87 loc) · 2.08 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
import type { GatsbyConfig } from 'gatsby';
import path from 'path';
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
const config: GatsbyConfig = {
siteMetadata: {
title: `몽글`,
siteUrl: `https://mgmg.life`,
description: `빠르고 확실한 반려견 출장 목욕 서비스`,
},
graphqlTypegen: true,
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-sharp',
options: {
defaults: {
formats: [`auto`, `webp`],
placeholder: `none`,
quality: 100,
breakpoints: [750, 1080, 1366, 1920],
backgroundColor: `transparent`,
},
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GA_ID, // Google Analytics / GA
],
gtagConfig: {
optimize_id: process.env.GTM_ID, // Google Tag Manager / GTA
anonymize_ip: true,
cookie_expires: 1000,
},
pluginConfig: {
head: true,
respectDNT: true,
//origin: "https://www.googletagmanager.com",
delayOnRouteUpdate: 1000,
},
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /\.inline\.svg$/,
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/logo.png',
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://mgmg.life/',
sitemap: 'https://mgmg.life/sitemap-index.xml',
policy: [{ userAgent: '*', allow: '/' }],
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'@src': 'src',
'@api': 'src/api',
'@components': 'src/components',
'@images': 'src/images',
'@pages': 'src/pages',
'@styles': 'src/styles',
},
extensions: [],
},
},
],
};
export default config;