-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
48 lines (43 loc) · 1.33 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
/* eslint-env node */
/* eslint-disable @typescript-eslint/no-var-requires */
/* Core */
const dotenv = require('dotenv');
const fs = require('fs');
const path = require('path');
dotenv.config({ path: '.env' });
dotenv.config({ path: '.env.local' });
const srcDirs = fs.readdirSync(path.resolve(__dirname, 'src'));
const rootDirsConfig = {};
srcDirs.forEach(srcDir => {
rootDirsConfig[ `@/${srcDir}` ] = path.resolve(__dirname, 'src', srcDir);
});
module.exports = {
siteMetadata: {
title: 'Slicks Slices',
siteUrl: 'https://slickslices.gtsb.io/',
description: 'The best pizza in Hamilton!',
},
plugins: [
'gatsby-plugin-pnpm',
'gatsby-plugin-gatsby-cloud',
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
// {
// resolve: 'gatsby-plugin-root-import',
// options: rootDirsConfig,
// },
{
resolve: 'gatsby-source-sanity',
options: {
projectId: 'zymjgahi',
dataset: 'production',
token: process.env.SANITY_TOKEN,
watchMode: process.env.NODE_ENV === 'development',
},
},
],
jsxRuntime: 'automatic',
};