{"size": 2725, "ext": "js", "max_stars_repo_path": "modules/build/function/gatsby-config.js", "max_stars_repo_name": "digitalkaoz/tf-private-static-image-video-gallery", "max_stars_repo_stars_event_min_datetime": "2018-03-16T18:07:54.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-08T12:39:14.000Z", "max_issues_repo_path": "modules/build/function/gatsby-config.js", "max_issues_repo_name": "digitalkaoz/tf-private-static-image-video-gallery", "max_issues_repo_issues_event_min_datetime": "2018-06-12T21:03:28.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-14T08:09:09.000Z", "max_forks_repo_path": "modules/build/function/gatsby-config.js", "max_forks_repo_name": "digitalkaoz/tf-private-static-image-video-gallery", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 36.3333333333, "max_line_length": 87, "alphanum_fraction": 0.4539449541}
if (process.env.NODE_ENV !== "production") {
    require('dotenv').config();
}

const config = JSON.parse(process.env.CONFIG || "{}");

module.exports = {
    siteMetadata: {
        title: config.title || "Image-Video Gallery",
        author: config.author || "Robert Schönthal",
        description: config.subline || "private and serverless",
        shortcode: config.shortcode || "IVG"
    },
    pathPrefix: '/',
    plugins: [
        'gatsby-plugin-sass',
        'gatsby-transformer-remark',
        {
            resolve: 'gatsby-source-filesystem',
            options: {
                path: `${__dirname}/src/posts`,
                name: 'posts',
            },
        },
        'gatsby-plugin-react-helmet',
        {
            resolve: 'gatsby-plugin-manifest',
            options: {
                name: config.title,
                short_name: config.shortcode,
                start_url: '/',
                background_color: '#242943',
                theme_color: '#242943',
                display: 'minimal-ui',
                icons: [
                    {
                        src: '/favicon.png',
                        sizes: '144x144',
                        type: 'image/png',
                    }
                ],
            },
        },
        {
            resolve: 'gatsby-plugin-offline',
            options: {
                staticFileGlobs: [
                    `${__dirname}/public/**/*.{js,css,woff2}`,
                    `${__dirname}/public/offline-plugin-app-shell-fallback/index.html`,
                ],
                stripPrefix: __dirname + '/public',
                navigateFallback: '/offline-plugin-app-shell-fallback/index.html',
                // Only match URLs without extensions.
                // So example.com/about/ will pass but
                // example.com/cheeseburger.jpg will not.
                // We only want the service worker to handle our "clean"
                // URLs and not any files hosted on the site.
                navigateFallbackWhitelist: [/index\.html/],
                cacheId: 'gatsby-plugin-offline',
                // Do cache bust JS URLs until can figure out how to make Webpack's
                // URLs truely content-addressed.
                dontCacheBustUrlsMatching: /(.\w{8}.woff2)/, //|-\w{20}.js)/,
                // runtimeCaching: [
                //     {
                //         // Add runtime caching of images.
                //         urlPattern: /\.(?:png|jpg|jpeg|webp|svg|gif|tiff)$/,
                //         handler: 'fastest',
                //     },
                // ],
                skipWaiting: true,
            }
        }
    ].filter(plugin => plugin),
};
