A clone of the Next.js + Contentful boiler plate, hosted on Vercel.
The Vue starter project was preferable, but the React starter had less opininated visual styling and better typography.
Upgrading from an outdated repository whose dependencies were considerably out of date.
- Vue over React any day of the week. But, it's good to see what I've been missing in React Land for the past couple of years.
- Not a huge fan of GraphQL, but the queries were easily updated to match my item schema. Contentful's GraphQL playground was helpful in helping get over my severe dislike of this "query language".
Copy the example .env
file and fill in your SPACE_ID
, ACCESS_TOKEN
, and PREVIEW_ACCESS_TOKEN
:
cp .env.local.example .env.local
pnpm install
pnpm run dev
pnpm run build
(if any issues, append --debug
to that command)
Contentful portfolioItem
schema
slug
title
description
heroImage {
title
description
contentType
fileName
size
url
width
height
}
techTags
externalUrl
![[./__assets/contentful-schema.png]]
- SEO stuff: How to edit robots.txt, how to set opengraph image
- Video embeds as part of Rich Text field
- Add contentful webhooks to trigger Vercel rebuild on content updates
- Backburner: clean up the mess that tailwind left behind