-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgatsby-config.js
More file actions
33 lines (32 loc) · 955 Bytes
/
Copy pathgatsby-config.js
File metadata and controls
33 lines (32 loc) · 955 Bytes
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
// add as a dev-proxy
const fileSystemAPI = require('./src/cms/file-system-api-plugin/fs-express-api');
module.exports = {
siteMetadata: {
title: 'Gatsby NetlifyCMS (fs-api)',
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `articles`,
path: `${__dirname}/content/articles`,
},
},
'gatsby-plugin-react-helmet',
'gatsby-transformer-remark',
{
resolve: `gatsby-plugin-netlify-cms`,
options: {
modulePath: `${__dirname}/src/cms/cms.js`, // default: undefined
stylesPath: `${__dirname}/src/cms/cms.css`, // default: undefined
enableIdentityWidget: false, // default: true
publicPath: 'admin',
htmlTitle: 'Content Manager',
manualInit: true,
},
},
],
// add the file-system api as an api proxy:
// https://next.gatsbyjs.org/docs/api-proxy/#advanced-proxying
developMiddleware: fileSystemAPI,
};