Skip to content

contentful-labs/nextjs-studio-marketing-demo

Repository files navigation

NextJS Studio Marketing Demo

This project is an example Next.js app demonstrating a marketing website built for Contentful Studio Experiences.

How to Start

  1. Copy the .env.template file to .env in this project directory and set the environment variables as described in Config
  2. Set the content preview URL of the experience type to http://localhost:3000/{entry.fields.slug}?expEditorMode=true
  3. Run npm run dev

Config

The app reads several environment variables to configure its behavior:

NEXT_PUBLIC_CTFL_ENVIRONMENT=<environment>
NEXT_PUBLIC_CTFL_SPACE=<space>
NEXT_PUBLIC_CTFL_ACCESS_TOKEN=<access token>
NEXT_PUBLIC_CTFL_PREVIEW_ACCESS_TOKEN=<preview access token>
NEXT_PUBLIC_CTFL_EXPERIENCE_TYPE=<experience type>
NEXT_PUBLIC_CTFL_DOMAIN=<domain> (contentful.com (prod) or flinkly.com (staging))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published