Example project using Next.js with the Contentstack Delivery API, deployed to Vercel.
Live Example: https://contentstack-nextjs-tailwind.vercel.app/
Live Example: https://contentstack-nextjs-tailwind.vercel.app/test
Remember to set up a .env
file with your contentstack keys.
CONTENTSTACK_STACK_API_KEY=''
CONTENTSTACK_ENVIRONMENT=''
CONTENTSTACK_DELIVERY_TOKEN=''
CONTENTSTACK_REGION='NA'
NEXT_USE_SSR=1
If you want to enable SSG please set NEXT_USE_SSR=0
Once you've created a project and installed dependencies with `yarn`, start a development server:
yarn dev
# or start the server and open the app in a new browser tab
yarn dev -- --open
yarn build
This starter kit relies on the following content models.
- Title, short text.
- Slug, short text
- Components, References - many.
- Title, short text.
- Description, short text
- CTA Text, short text
- URL, short text