A sample website frontend for Compose with Next.js
Compose Starter: Help Center + Next.js is a sample website frontend that serves as a starting point for developers wanting to use Compose and Next.js. It provides an example that can be used with Compose’s quick start “Simple website” content model for empty spaces. The website can be deployed locally or on Vercel and utilizes technologies such as Next.js, TypeScript, and Tailwind CSS. The project structure includes pages, components, and a lib directory. The content types used in the website are generated using the cf-content-types-generator tool.
To install and run the Compose Starter: Help Center + Next.js theme, follow these steps:
npm install
.env.example
file to .env
and adapt the environment variables to your setup:CF_SPACE_ID
: The ID of a Compose compatible space to be usedCF_DELIVERY_ACCESS_TOKEN
: A delivery API key for the spaceCF_PREVIEW_ACCESS_TOKEN
: A preview API key for the spacenpm run dev
If you prefer to deploy the app using Vercel, you can follow these steps:
Click the “Deploy with Vercel” button to easily deploy the app. This will automatically set up the project on Vercel.
For manual deployment, follow these steps:
CF_SPACE_ID
, CF_DELIVERY_ACCESS_TOKEN
, CF_PREVIEW_ACCESS_TOKEN
) in the project settings.Compose Starter: Help Center + Next.js is a sample website frontend designed to assist developers in getting started with Compose and Next.js. It provides a ready-to-use example that can be used with Compose’s “Simple website” content model. The theme offers easy installation and deployment options, allowing developers to deploy the website locally or on Vercel. With its use of Next.js, TypeScript, and Tailwind CSS, the frontend is built on modern web development technologies. The project structure is well-organized, with distinct directories for pages, components, and lib. The generation of content types ensures synchronization with the space used. Overall, Compose Starter: Help Center + Next.js is a versatile and convenient solution for developers looking to kickstart their website development with Compose and Next.js.