This project showcases the integration between Next.js, Contentful and Arboretum SDK.
First, create an account on Contentful.
After creating an account, create a new empty space.
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.
git clone [email protected]:BrightIT/arboretum-nextjs-example.git
cd arboretum-nextjs-example
ARBORETUM_PREVIEW_REVALIDATE=
ARBORETUM_PUBLISHED_REVALIDATE=
CONTENTFUL_SPACE=
CONTENTFUL_ENVIRONMENT=
CONTENTFUL_CDA_ACCESS_TOKEN=
CONTENTFUL_CPA_ACCESS_TOKEN=
yarn dev
Open http://localhost:3000 with your browser to see the result.
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.