-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
59 lines (55 loc) · 1.38 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
*/
// require('dotenv').config();
// uncomment to make dev vars work again
/*
if (process.env.NODE_ENV !== "production") {
require("dotenv").config({
path: ".env.development",
});
}
*/
require('dotenv').config({
path: process.env.NODE_ENV === 'Production' ? '.env.production' : '.env.development',
});
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: 'Noah Kittinger',
siteUrl: `https://noahkittinger.co`,
description: `Producer / Musician / Audio Engineer`,
twitterUsername: `@noah_kittinger`,
image: `https://noahkittinger.co/preview.jpg`,
},
plugins: [
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-sanity',
options: {
projectId: process.env.SANITY_PROJECT_ID,
dataset: process.env.SANITY_DATASET,
},
},
{
resolve: 'gatsby-source-filesystem', // using for static contact images
options: {
name: 'images',
path: `${__dirname}/src/images/`,
},
},
{
resolve: 'gatsby-plugin-image',
options: {
// This is important for gatsby-plugin-image
defaultQuality: 75,
},
},
'gatsby-plugin-postcss', // Added gatsby-plugin-postcss
],
}