-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
45 lines (40 loc) · 929 Bytes
/
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
import type { GatsbyConfig } from "gatsby";
const { remarkCodeHike } = require("@code-hike/mdx");
let siteUrl = "https://www.heady.fun";
if (process.env.NODE_ENV === "dev") {
siteUrl = "http://localhost:8000";
}
const config: GatsbyConfig = {
siteMetadata: {
title: `找自己`,
siteUrl: siteUrl,
description: `找自己`,
image: `${siteUrl}`,
twitterUsername: "scv001",
},
flags: {
DEV_SSR: true,
},
plugins: [
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-plugin-postcss",
{
resolve: "gatsby-source-filesystem",
options: {
name: `blog`,
path: `${__dirname}/blog`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
mdxOptions: {
remarkPlugins: [[remarkCodeHike, { theme: "material-palenight" }]],
},
},
},
],
};
export default config;