Company
Date Published
Author
Lennart Jörgens
Word count
812
Language
English
Hacker News points
None

Summary

Gatsby has introduced a new File System Route API, which simplifies the process of route creation in Gatsby projects by allowing developers to define routes directly in the file names within the pages folder, eliminating the need for gatsby-node.js for most use cases. This update aims to make getting started with Gatsby faster and easier, whether for individual developers or teams. The new API supports the creation of client-only routes and programmatically created pages, reducing boilerplate code and streamlining the development process. Developers are encouraged to update to Gatsby version 2.26.0 or later to take advantage of these features, and to refer to the extensive documentation and examples provided for guidance. The introduction of this API abstracts away the explicit usage of createPages, translating file names into API calls under the hood, although there are some current limitations regarding custom properties and variables in file names. A webinar is scheduled for December 10th to demonstrate the new API's capabilities.