With ideas from:
- https://github.com/erikdstock/gatsby-starter-ts-mdx
- https://github.com/rwieruch/gatsby-mdx-blog-starter-project
If new frontmatter fields are added, they also must be added to the following places:
- gatsby/onCreateNode.ts - Search for
blogFields
- gatsby/createSchemaCustomization.ts - Add to the type definitions of the BlogPost interface and the MdxBlogPost type.
Development is as easy as running yarn d:w
, this will basically start gatsby develop
with nodemon
, so that changes to the files inside ./gatsby
correctly reloads the dev server.