-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
62 lines (60 loc) · 1.49 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
60
61
62
/**
* @type {import('gatsby').GatsbyConfig}
*/
/* eslint-disable global-require */
const resolveConfig = require("tailwindcss/resolveConfig");
const tailwindConfig = require("./tailwind.config");
const fullConfig = resolveConfig(tailwindConfig);
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: `TUM.ai Makeathon 2023`,
description: "TUM.ai Makeathon 2023 Frontend",
author: "@laurenzsommerlad",
},
plugins: [
"gatsby-plugin-mdx",
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: "gatsby-plugin-apollo",
options: {
uri: process.env.GATSBY_STRAPI_GRAPHQL,
},
},
`gatsby-plugin-eslint`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `makeathon2023-mvp`,
short_name: `makeathon2023`,
start_url: `/`,
background_color: fullConfig.theme.colors.white,
theme_color: fullConfig.theme.colors.white,
display: `minimal-ui`,
icon: `src/images/icon.png`,
},
},
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require(`tailwindcss`)(tailwindConfig),
require(`autoprefixer`),
...(process.env.NODE_ENV === `production`
? [require(`cssnano`)]
: []),
],
},
},
`gatsby-plugin-offline`,
],
};