Skip to content

BrightIT/arboretum-nextjs-example

Repository files navigation

Next.js + Contentful + Arboretum starter

This project showcases the integration between Next.js, Contentful and Arboretum SDK.

How to use

Step 1. Create an account and a space on Contentful

First, create an account on Contentful.

After creating an account, create a new empty space.

Step 2. Install Arboretum app

The easiest way to get stared is to install Arboretum app in yor environment in contentful. By selecting "Automatic" installation mode Arboretum app will take care of all required configuration and will create sample content.

Step 3. Clone project

git clone [email protected]:BrightIT/arboretum-nextjs-example.git
cd arboretum-nextjs-example

Step 4. Define .env.local

ARBORETUM_PREVIEW_REVALIDATE=
ARBORETUM_PUBLISHED_REVALIDATE=

CONTENTFUL_SPACE=
CONTENTFUL_ENVIRONMENT=
CONTENTFUL_CDA_ACCESS_TOKEN=
CONTENTFUL_CPA_ACCESS_TOKEN=

Step 5. Start project

yarn dev

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.