Plugins

Plugins are Node.js packages that implement Gatsby APIs. The config file accepts an array of plugins. Some plugins may need only to be listed by name, while others may take options (see the docs for individual plugins).

See more about Plugins for more on utilizing plugins, and to see available official and community plugins.

pathPrefix

It’s common for sites to be hosted somewhere other than the root of their domain. Say we have a Gatsby site at example.com/blog/. In this case, we would need a prefix (/blog) added to all paths on the site.

module.exports ={// Note: it must *not* have a trailing slash.
pathPrefix:`/blog`,};