This is a starter template for Learn Next.js.
After cloning the repository and installing the node packages, in order to get the project building you will need to:
- Copy the
.env.template
file, rename to.env.local
and populate with the correct values from contentful - In contentful, create a content model called
webPage
to inclue the following fields:- title: string;
- mainBodyText: Contentful rich text field;
- urlPath: string;
- image: Contentful image asset;
- sortOrder: number;
- Create an identical content model but called
galleryPage
- In addition this needs an
images
field (multiple contentful image assets)
- In addition this needs an
- Create some entries from the above content type (as well as a gallery) and publish
- Once created, swap the entry id of the galleryPage entry with your if in the
get-gallery-page.ts
file - Add your name to
NEXT_PUBLIC_WEBSITE_OWNER_NAME=
- Replace
public/favicons/favicon-192.png
with your own favicon
In theory, that should now build and work 🤞