-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
24 lines (24 loc) · 907 Bytes
/
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
module.exports = {
plugins: [
{ resolve: `gatsby-plugin-layout` },
{
resolve: `gatsby-source-prismic`,
options: {
repositoryName: `great-state-gatsby-starter`,
accessToken: `MC5YMWoxb2hJQUFDZ0FUVkJm.77-977-977-9Eu-_ve-_vS0beu-_vXjvv73vv73vv70w77-9H--_ve-_vQzvv70o77-977-9Ie-_vUfvv73vv73vv71H77-9`,
schemas: {
home_page: require('./src/schema/home_page.json'),
content_page: require('./src/schema/content_page.json'),
},
linkResolver: () => (doc) => {
switch (doc.type) {
case 'content_page':
return `content/${doc.uid}`;
default:
return '/';
}
},
},
},
],
};