Home / Companies / Gatsby / Blog / Post Details
Content Deep Dive

Automatically create pages from components in any directory

Blog post from Gatsby

Post Details
Company
Date Published
Author
Steven Natera
Word Count
729
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

A new plugin for Gatsby, created by Steven Natera with the help of Kyle Mathews, allows developers to automatically generate pages from components located in any directory within a Gatsby project, addressing the limitation of the default hardcoded src/pages path. This development emerged from community requests for a more flexible folder structure that accommodates different workflow needs without losing the automatic page creation feature. By extracting and modifying an internal plugin, the gatsby-plugin-page-creator was developed, enabling users to specify any desired directory path for component-based page generation through a simple configuration in gatsby-config.js. The plugin, available on npm, has been widely adopted, receiving over 50,000 downloads in under a month, and is celebrated as a significant contribution to the Gatsby ecosystem, enhancing the organizational capabilities of projects while maintaining powerful out-of-the-box functionalities.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.