require("dotenv").config() const siteConfig = require("./config") const { NODE_ENV, URL: NETLIFY_SITE_URL = 'https://devthread.ru/', DEPLOY_PRIME_URL: NETLIFY_DEPLOY_URL = NETLIFY_SITE_URL, CONTEXT: NETLIFY_ENV = NODE_ENV, } = process.env module.exports = { siteMetadata: { ...siteConfig, }, plugins: [ "gatsby-plugin-react-helmet", "gatsby-plugin-preact", "gatsby-plugin-sass", { resolve: "gatsby-source-filesystem", options: { path: `${__dirname}/static/assets`, name: "assets", }, }, { resolve: "gatsby-source-filesystem", options: { name: "content", path: `${__dirname}/content`, }, }, { resolve: "gatsby-plugin-react-svg", options: { rule: { include: /images/, }, }, }, "gatsby-plugin-sitemap", { resolve: 'gatsby-plugin-robots-txt', options: { resolveEnv: () => NETLIFY_ENV, env: { production: { policy: [{ userAgent: '*' }], }, 'branch-deploy': { policy: [{ userAgent: '*', disallow: ['/'] }], sitemap: null, host: null, }, 'deploy-preview': { policy: [{ userAgent: '*', disallow: ['/'] }], sitemap: null, host: null, }, }, }, }, { resolve: `gatsby-plugin-manifest`, options: { name: `devthread`, short_name: `devthread`, start_url: `/`, background_color: `#ffffff`, icons: [ { src: `/android-chrome-192x192.png`, sizes: `192x192`, type: `image/png`, }, { src: `/android-chrome-512x512.png`, sizes: `512x512`, type: `image/png`, }, ], theme_color: `#ffffff`, display: `standalone`, }, }, { resolve: "gatsby-plugin-firebase", options: { credentials: { apiKey: process.env.API_KEY, authDomain: process.env.AUTH_DOMAIN, databaseURL: process.env.DATABASE_URL, projectId: process.env.PROJECT_ID, storageBucket: process.env.STORAGE_BUCKET, messagingSenderId: process.env.MESSAGING_SENDER_ID, appId: process.env.APP_ID, }, }, }, { resolve: `gatsby-plugin-nprogress`, options: { color: `#5183F5`, showSpinner: false, }, }, "gatsby-plugin-sharp", "gatsby-transformer-sharp", { resolve: `gatsby-transformer-remark`, options: { plugins: [ { resolve: `gatsby-plugin-netlify-cms-paths`, options: { cmsConfig: `/static/admin/config.yml`, }, }, { resolve: `gatsby-remark-images`, options: { maxWidth: 2400, quality: 100, withWebp: true, loading: 'lazy', linkImagesToOriginal: false, } }, `gatsby-remark-responsive-iframe`, { resolve: 'gatsby-remark-copy-linked-files', options: { destinationDir: 'static', }, }, { resolve: `gatsby-remark-autolink-headers`, options: { offsetY: `140`, icon: ``, className: `anchor-link`, maintainCase: true, removeAccents: true, isIconAfterHeader: true, elements: [`h1`, `h2`, `h3`, `h4`], }, }, { resolve: `gatsby-remark-vscode`, options: { extensions: ["material-theme"], theme: { default: "Light+ (default light)", parentSelector: { "body.dark": "One Dark Pro", }, }, }, }, ], }, }, "gatsby-plugin-netlify-cms", ], }