-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
44 lines (41 loc) · 1 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
import type { GatsbyConfig } from "gatsby";
import adapter from "gatsby-adapter-netlify";
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
const config: GatsbyConfig = {
adapter: adapter({
excludeDatastoreFromEngineFunction: false,
imageCDN: true,
}),
siteMetadata: {
title: "Design Code",
description: "The best design and code resources on the web.",
siteUrl: "https://youssefmeskini.me",
twitterUsername: "@youssefmeskini",
image: "/images/og-image.jpg",
},
graphqlTypegen: true,
plugins: [
"gatsby-plugin-styled-components",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /images/,
},
},
},
{
resolve: "gatsby-source-contentful",
options: {
spaceId: "hk8p85i4mug2",
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
],
};
export default config;