Next.js from Development to Deployment - Connecting to the Strapi API

Next.js from Development to Deployment - Connecting to the Strapi API

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through connecting a Next.js application to a Strapi API, focusing on changing the API endpoint, handling image URLs, and updating the events and details pages. It also covers formatting dates for display and prepares for implementing a search feature. The tutorial emphasizes the importance of adjusting configurations and code to accommodate changes in API structure and data formats.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What port should be used to connect to the Strapi API?

3000

1337

8080

5000

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What change is necessary when making requests to the Strapi API?

Add '/api' to the URL

Remove '/api' from the URL

Use a different domain

Change the HTTP method to POST

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How should image URLs be handled when using external sources in Next.js?

Host images locally

Add the domain to the Next.js config file

Use a different image tag

Convert images to base64

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of sorting events by date in the events page?

To group events by category

To filter out past events

To display events in alphabetical order

To display the most recent events first

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are events fetched by slug in the details page?

Fetching all events and filtering locally

Using a separate API endpoint

Using a query in the URL

Using a parameter in the URL

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What format is used to display dates in the event details?

ISO 8601 format

Locale date string format

Unix timestamp

Custom string format

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the next step after connecting to the Strapi API and handling data?

Implementing CRUD functionality

Adding user authentication

Creating a search box

Deploying the application