Skip to content

Commit

Permalink
feat: remove release-notes json generation from build
Browse files Browse the repository at this point in the history
  • Loading branch information
tabathadelane committed May 5, 2023
1 parent a39bb65 commit e8cadb2
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,53 +361,6 @@ module.exports = {
nodesPerFeedFile: Infinity,
},
},
{
resolve: `gatsby-plugin-generate-json`,
options: {
query: `
{
allMdx(filter: {fields: {slug: {regex: "/docs/release-notes/"}}}) {
nodes {
frontmatter {
subject
releaseDate(fromNow: false)
downloadLink
version
features
bugs
security
}
excerpt(pruneLength: 5000)
slug
}
}
}
`,
path: '/api/agent-release-notes.json',
serialize: ({ data }) =>
data.allMdx.nodes
.map(({ frontmatter, excerpt, slug }) => {
const releaseNote = {
agent: getAgentName(frontmatter.subject),
date: frontmatter.releaseDate,
downloadLink: frontmatter.downloadLink,
version: frontmatter.version,
features: frontmatter.features,
bugs: frontmatter.bugs,
security: frontmatter.security,
description: excerpt,
slug: slug,
};

if (releaseNote.date) {
releaseNote.eolDate = getEOLDate(releaseNote.date);
}

return releaseNote;
})
.filter(({ date, agent }) => Boolean(date && agent)),
},
},
'gatsby-plugin-release-note-rss',
'gatsby-plugin-whats-new-rss',
'gatsby-plugin-security-bulletins-rss',
Expand Down

0 comments on commit e8cadb2

Please sign in to comment.