Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.