Gatsby template for websites with content managed in Prismic
You will need Prismic API keys to start to build this project. Please refer to .env.example
for instructions.
- Node v18.x
- Yarn
- Prismic CLI
Create a new site and Prismic repository using the following command
prismic theme --theme-url https://github.com/superrbstudio/gatsby-theme
Enter the repository name when prompted, and this will be created for you.
Use the following to perform a development build and run a local server.
- copy
.env.example
to.env.development
- populate Prismic API keys and repository name
- Run
yarn
- Run
yarn start
Use the following to perform a production build and run a local server.
- copy
.env.example
to.env.production
- populate Prismic API keys and repository name
- Run
yarn
- Run
yarn start:prod
Use the following to create a production build.
- copy
.env.example
to.env.production
- populate Prismic API keys and repository name
- Run
yarn
- Run
yarn build
The production build files will be found in /public