/
gatsby-config.js
52 lines (51 loc) 路 1.31 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
siteUrl: "https://spartanprotcol.org",
title: "Spartan Protocol",
},
// pathPrefix: `/spartan-site`,
plugins: [
{
resolve: `gatsby-plugin-sass`,
options: {
postCssPlugins: [
require("tailwindcss"),
require("./tailwind.config.js"), // Optional: Load custom Tailwind CSS configuration
require("autoprefixer"),
],
},
},
`gatsby-plugin-netlify`,
`gatsby-plugin-sitemap`,
`gatsby-transformer-remark`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/assets/favicon-32x32.png",
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/, // See below to configure properly
},
},
},
{
resolve: "gatsby-source-rest-api",
options: {
endpoints: [
"https://api.github.com/repos/spartan-protocol/SpartanProtocol-DAppV2/contributors",
"https://api.github.com/repos/spartan-protocol/spartan-site/contributors",
"https://api.github.com/repos/spartan-protocol/spartan-docs/contributors",
],
},
},
],
};