Overview
This article discusses a statically generated page using Next.js and Kontent.ai as the data source. It showcases the Static Generation feature of Next.js and provides a guide for setting up the project.
Features
- Next.js Static Generation feature
- Integration with Kontent.ai as the data source
- Ability to customize and experiment with content using own clone of the project
Installation
To install the theme, follow these steps:
- Deploy the project with Vercel or Netlify.
- Initialize the project by running the command
create-next-appwith npm or Yarn. - Set up environment variables by copying the
.env.local.templatefile to.env.local. - Run the development server by executing the command for the local host.
- Create your own data source project in Kontent.ai.
- Generate a clone of the sample project and connect it with the code base.
- Set the necessary environment variables in the
.env.localfile. - Start editing the content in the Kontent.ai project.
- Preview unpublished content using the preview mode.
- Refer to the provided resources to learn more about Next.js and Kontent.ai.
Summary
This article introduces a statically generated page using Next.js and the Kontent.ai as the data source. It provides installation instructions and highlights key features such as the Static Generation feature and the integration with Kontent.ai. The article also includes resources for further learning and development.