gatsby develop
Runs dev server normallyyarn run develop
Runs dev server, but with the option of using Prisma's graphQL Playgroundgatsby build
Build public directory for deplooymentThe Gatsby package for using the Contenful headless CMS as a data source is already included. The file gatsby-config.js
contains the code to access the API (with the proper credentials and a .ENV file); all that's necessary is to uncomment the relevant portions. For a full example, see this file
To set up dynamic routing based on a repeatable type in the Contentful repo, check out this file.
To use SCSS, create a /styles folder, add a main.scss
file, then import it in (likely) the layout.js
file. Use main.scss
to @include
other SCSS files.