function requireConfig(path) {
  try {
    return require(path);
  } catch (e) {
    console.error(
      'Failed to require sanity.json. Fill in projectId and dataset name manually in gatsby-config.js',
    );
    return {
      api: {
        projectId: process.env.SANITY_PROJECT_ID || '',
        dataset: process.env.SANITY_DATASET || '',
      },
    };
  }
}
/**
 * We're requiring a file in the studio folder to make the monorepo
 * work "out-of-the-box". Sometimes you would to run this web frontend
 * in isolation (e.g. on codesandbox). This will give you an error message
 * with directions to enter the info manually or in the environment.
 */
We're requiring a file in the studio folder to make the monorepo
work "out-of-the-box". Sometimes you would to run this web frontend
in isolation . This will give you an error message
with directions to enter the info manually or in the environment.
We ' re requiring a file in the studio folder to make the monorepo work " out - of - the - box " . Sometimes you would to run this web frontend in isolation . This will give you an error message with directions to enter the info manually or in the environment .
function requireConfig(path) {
  try {
    return require(path);
  } catch (e) {
    console.error(
      'Failed to require sanity.json. Fill in projectId and dataset name manually in gatsby-config.js',
    );
    return {
      api: {
        projectId: process.env.SANITY_PROJECT_ID || '',
        dataset: process.env.SANITY_DATASET || '',
      },
    };
  }
}
function requireConfig ( path ) { try { return require ( path ) ; } catch ( e ) { console . error ( 'Failed to require sanity.json. Fill in projectId and dataset name manually in gatsby-config.js' , ) ; return { api : { projectId : process . env . SANITY_PROJECT_ID || '' , dataset : process . env . SANITY_DATASET || '' , } , } ; } }
We're requiring a file in the studio folder to make the monorepo
 work "out-of-the-box".
We ' re requiring a file in the studio folder to make the monorepo work " out - of - the - box " .