Based on work by Prismic team I've integrated Next.js with styled-components as CSS library and Prismic.io. I've also installed eslint and Prettier used during development.
Create a new project on Prismic creating custom types from custom_types
folder: React components will use those structures so if you want to create a new custom type or have a different structure you must adapt components to it (or you can create new components to handle your data).
After you created some content on Prismic edit prismic-configuration.js
file with the url of your Prismic repository.
By running the command yarn dev
you are starting development server (located at localhost:3000
).