text: exports.onCreateWebpackConfig = ({ actions }) => {
    actions.setWebpackConfig({
      module: {
        rules: [
          {
            test: /\.md$/,
            use: 'raw-loader'
          },
        ],
      },
    })
  }
  const path = require("path")
  exports.createPages = ({ actions, graphql }) => {
    const { createPage } = actions
    const CountriesView = path.resolve(`src/layouts/countries.js`)
    graphql(`
      {
        allMarkdownRemark(
          sort: { order: DESC, fields: [] }
          limit: 1000
        ) {
          edges {
            node {
              frontmatter {
                path
              }
            }
          }
        }
      }
    `).then(result => {
      if (result.errors) {
        return Promise.reject(result.errors)
      }
      result.data.allMarkdownRemark.edges.forEach(({ node }) => {
        createPage({
          path: node.frontmatter.path,
          component: CountriesView,
        })
      })
    })
  }
  