Querying Prismic Content
Lesson Overview
Transcript
[00:00] Now you know how to use the editor to add content for eie.io The next step is to get that content in your Next.js project.
[00:06] This lesson will teach you the basics of querying the Prismic API.
[00:10] You'll use the JavaScript client package to fetch the content for the homepage.
[00:14] We'll give you some tips to debug and explain how the JSON response is structured, and as a bonus, you'll learn about the prismicio settings file.
[00:21] So let's get started.
What you'll learn:
- How to query the API with Javascript
- Console logging the response
- How some of the data is structured
- What the Prismic settings file does