text: const {
    prismicRepo,
    releaseID,
    accessToken,
  } = require('./prismic-configuration')
  
  const linkResolver = require('./src/utils/linkResolver')
  
  
  const reponame = process.env.PRISMIC_REPO_NAME || prismicRepo
  const apiKey = process.env.PRISMIC_API_KEY || accessToken
  const prismicReleaseID = process.env.PRISMIC_RELEASE_ID || releaseID
  
  const blogHomeSchema = require('./custom_types/bloghome.json')
  const postSchema = require('./custom_types/post.json')
  const navigationSchema = require('./custom_types/navigation.json')
  const pageSchema = require('./custom_types/page.json')
  const homePageSchema = require('./custom_types/homepage.json')
  
  
  const gastbySourcePrismicConfig = {
    resolve: 'gatsby-source-prismic',
    options: {
      repositoryName: reponame,
      accessToken: apiKey,
      releaseID: prismicReleaseID,
      prismicToolbar: true,
      linkResolver: () => (doc) => linkResolver(doc),
      schemas: {
        blogHome: blogHomeSchema,
        post: postSchema,
        navigation: navigationSchema,
        page: pageSchema,
        homepage: homePageSchema,
      },
    },
  }
  
  module.exports = {
    siteMetadata: {
      title: 'Kanzlei Späth, Steuerberater für Unternehmen und Unternehmer in Bogen',
      description: 'digitaler Steuerberater',
      author: '@Dr. Thomas Späth',
    },
    plugins: [
      gastbySourcePrismicConfig,
      'gatsby-plugin-react-helmet',
      'gatsby-plugin-sass',
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: 'gatsby-starter-default',
          short_name: 'starter',
          start_url: '/',
          background_color: '#663399',
          theme_color: '#663399',
          display: 'minimal-ui',
          icon: 'src/images/favicon.png', // This path is relative to the root of the site.
        },
      },
      {
        resolve: 'gatsby-plugin-web-font-loader',
        options: {
          google: {
            families: ['Lato', 'Material+Icons']
          }
        }
      },
      'gatsby-transformer-sharp',
      'gatsby-plugin-sharp',
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          name: 'images',
          path: `${__dirname}/src/images`,
        },
      },
    ],
  }
  