-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
37 lines (37 loc) · 1.14 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
const path = require('path');
const config = require('./src/config');
module.exports = {
pathPrefix: "/gatsby-starter-builder",
siteMetadata: {
title: 'Gatsby + Builder.io Starter',
description:
'This repo contains an example website that is built with Builder.io, and generate with Gatsby'
},
plugins: [
'gatsby-plugin-top-layout',
{
resolve: 'gatsby-plugin-material-ui',
// If you want to use styled components you should change the injection order.
options: {
// stylesProvider: {
// injectFirst: true,
// },
}
},
// If you want to use styled components you should add the plugin here.
// 'gatsby-plugin-styled-components',
'gatsby-plugin-react-helmet',
{
resolve: '@builder.io/gatsby',
options: {
/** TODO: update this with your API key! */
publicAPIKey: config.builderAPIKey,
templates: {
// Render every `page` model as a new page using the /page.tsx template
// based on the URL provided in Builder.io
landingPage: path.resolve('src/templates/LandingPage.jsx')
}
}
}
]
};