text: const path = require("path");
  
  exports.createPages = async ({ graphql, actions }) => {
    const { createPage } = actions;
  
    const pages = await graphql(`
      {
        allPrismicCasestudy {
          edges {
            node {
              id
              uid
            }
          }
        }
      }
    `);
  
    const caseTemplate = path.resolve("src/templates/case.jsx");
  
    pages.data.allPrismicCasestudy.edges.forEach((edge) => {
      createPage({
        path: `/${edge.node.uid}`,
        component: caseTemplate,
        context: {
          uid: edge.node.uid,
        },
      });
    });
  };
  