Skip to content

Latest commit

 

History

History
 
 

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

nextjs-strapi-image example

This directory is made to be able to test the library.

Getting started

Install all dependencies in both projects and start the servers.

Strapi:

$ cp .env.example .env
$ npm install
$ npm run build
$ npm run develop

After starting strapi, set up test pages with/without seo data

Nextjs:

$ pnpm install
$ pnpm run dev

After starting nextjs, you should now be able to access each page with their page id in the following format: http://localhost:3000/page/1, where 1 can be replaced with a page id.

Generate types

The types for the example can be generated in the nextjs folder with pnpm run types.