This Next.js app demonstrates the easiest way to add a content management system (CMS) to Next.js.
To learn yourself, follow the guide on Prismic's blog here: The Easiest Way to Add a CMS to Next.js
If you want to skip the guide and see the finished app, run the following commands:
npx degit prismicio-community/easiest-way-to-add-cms-nextjs easiest-way-to-add-cms-nextjs
cd easiest-way-to-add-cms-nextjs
npx @slicemachine/init
The commands will do the following:
- Start a new Next.js project using this starter.
- Ask you to log in to Prismic or create an account.
- Create a new Prismic content repository with sample content.
When you're ready to start your project, run the following command:
npm run dev
To learn more about working with Prismic, see the Prismic docs.
Copyright 2013-2022 Prismic <[email protected]> (https://prismic.io)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.