Created
November 1, 2018 15:24
-
-
Save tonyspiro/d99317cf37f6e316ec5ab3a45e250d7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
siteMetadata: { | |
title: 'Cosmic JS Gatsby Starter Localization', | |
nav: [ | |
{ slug: '', name: 'Home' }, | |
{ slug: 'about', name: 'About' }, | |
{ slug: 'contact', name: 'Contact' }, | |
{ slug: 'not-found', name: 'Not Found' }, | |
], | |
languages: [ | |
{ slug: '', localized_name: { en: 'English', es: 'Inglés', de: 'Englisch'} }, | |
{ slug: 'de', localized_name: { en: 'German', es: 'Alemán', de: 'Deutsche'} }, | |
], | |
}, | |
plugins: [ | |
'gatsby-plugin-react-helmet', | |
{ | |
resolve: `gatsby-source-cosmicjs`, | |
options: { | |
bucketSlug: process.env.COSMIC_BUCKET || `gatsby-localization`, | |
objectTypes: [`pages`], | |
// If you have enabled read_key to fetch data (optional). | |
apiAccess: { | |
read_key: ``, | |
} | |
} | |
}, | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment