-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
58 lines (56 loc) · 1.37 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
import type { GatsbyConfig } from 'gatsby';
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
const config: GatsbyConfig = {
siteMetadata: {
title: 'Leah Gardner',
description: 'A Gatsby storefront for a shopify store',
url: 'https://leah-gardner.vercel.app',
},
plugins: [
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-react-helmet',
'gatsby-plugin-transition-link',
'gatsby-plugin-postcss',
{
resolve: 'gatsby-source-shopify',
options: {
downloadImages: true,
storeUrl: process.env.GATSBY_SHOPIFY_STORE_URL,
password: process.env.SHOPIFY_ADMIN_API_ACCESS_TOKEN,
shopifyConnections: ['collections'],
},
},
{
resolve: 'gatsby-plugin-typegen',
options: {
outputPath: './src/gatsby-types.d.ts',
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /images/,
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Leah Gardner',
short_name: 'Leah Gardner',
start_url: '/',
background_color: '#FFA500',
theme_color: '#FFA500',
display: 'minimal-ui',
icon: 'src/images/icon.png',
},
},
],
jsxRuntime: 'automatic',
};
export default config;