-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridsome.config.js
39 lines (37 loc) · 1.07 KB
/
gridsome.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
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
module.exports = {
siteName: "Vue Couture",
siteDescription:
"Your one-stop shop for finding all manner of stylish, luxury apparel and accessories",
plugins: [
{
use: "@gridsome/source-contentful",
options: {
space: process.env.CONTETFUL_SPACE, // required
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, // required
host: "cdn.contentful.com",
environment: "master",
typeName: "Contentful"
}
},
{
use: "@gridsome/source-filesystem",
options: {
path: "content/posts/**/*.md",
typeName: "Post",
route: "/posts/:slug",
refs: {
// Create a Tag content type and its nodes automatically.
tags: {
typeName: "Tag",
route: "/tags/:id",
create: true
}
}
}
}
]
};