This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
101 lines (98 loc) · 2.29 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
91
92
93
94
95
96
97
98
99
100
101
import type { GatsbyConfig } from 'gatsby';
require('dotenv').config();
type Environments = 'production' | 'development';
const buildEnv =
process.env.BUILD_ENV ??
process.env.NODE_ENV ??
('development' as Environments);
const isDev = buildEnv === 'development';
const config: GatsbyConfig = {
jsxRuntime: 'automatic',
siteMetadata: {
title: `Hack the 6ix`,
siteUrl:
process.env.SITE_URL ??
process.env.DEPLOY_PRIME_URL ??
process.env.DEPLOY_URL ??
process.env.CF_PAGES_URL ??
'',
event: {
start: new Date('2022-8-19 GMT-0400'),
end: new Date('2022-8-21 23:59:59 GMT-0400'),
},
applications: {
start: new Date(),
end: new Date(),
},
socials: [
{
type: 'facebook',
link: 'https://www.facebook.com/HackThe6ix',
},
{
type: 'instagram',
link: 'https://www.instagram.com/hackthe6ix',
},
{
type: 'twitter',
link: 'https://twitter.com/hackthe6ix?lang=en',
},
{
type: 'linkedin',
link: 'https://linkedin.com/company/hackthe6ixofficial',
},
],
featureFlags: {
applications: false,
},
},
plugins: [
'gatsby-plugin-sass',
{
resolve: `gatsby-plugin-typegen`,
options: {
emitSchema: {
'src/__generated__/gatsby-introspection.json': true,
},
emitPluginDocuments: {
'src/__generated__/gatsby-plugin-documents.graphql': true,
},
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /images\/.*\.svg/,
},
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GOOGLE_ANALYTICS_ID,
},
},
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/logo.svg',
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/',
},
},
'gatsby-plugin-netlify',
!isDev && 'gatsby-plugin-mini-css-class-name',
].filter(Boolean),
};
export default config;