Note
This starter is archived and no longer updated. To start a new Prismic project with Next.js, see the Next.js guide.
Want to see an example of a multi-page website using Prismic and Next.js? Look no further! This project provides all the code you need for a personal website with a homepage, information pages, and navigation.
- Demo: Open live demo
- Learn more about Prismic and Next.js: Prismic Next.js Documentation
To start a new project using this starter:
- Visit https://prismic.io/dashboard.
- Create a new Prismic repository by selecting Next.js.
- Select the Multi-Page starter.
- Fill out your repository details and continue with the steps given in Prismic.
When you're ready to start your project, run the following command:
npm run devThis project uses the Type Builder, Prismic's cloud-based interface for modeling your Custom Types and Slices. Model your content in the Type Builder, then use the Prismic CLI to sync your models into your codebase, where you can save and version them:
npx prismic pullIf you change or add to your Custom Types, you'll need to update your route handling to match. Routes are configured in the routes array in prismic.config.json.
To learn how to work with your new project, see this starter's docs.
To learn more about working with Prismic, see the Prismic docs.
Copyright 2013-2022 Prismic <contact@prismic.io> (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.
