soames-gatsby-theme
Version:
A customizable Gatsby theme for personal websites using WordPress as a headless CMS.
23 lines (22 loc) • 621 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const themeConfig = (themeOptions = {}) => {
const url = themeOptions.url || process.env.GATSBY_WORDPRESS_URL;
if (!url) {
throw new Error("The WordPress GraphQL 'url' is required in theme options or .env.");
}
return {
siteMetadata: {
title: 'Soames Gatsby Theme',
},
plugins: [
{
resolve: 'gatsby-source-wordpress',
options: {
url,
},
},
],
};
};
exports.default = themeConfig;