Рет қаралды 3,705
🎉 June 14th Update: Draft Mode (Preview) is now fully supported with Prismic and Next.js App Router, check out the docs here:
prismic.io/docs/setup-nextjs#...
The Next.js App Router and React Server Components, two recently released innovative features, are great tools to build websites with Prismic.
The Next.js App Router introduces simple patterns to create performant, maintainable websites. It makes it easy to create global layouts, handle fine-grained dynamic URLs, and fetch data efficiently. The Next.js App Router is the successor to the Pages Router you may already be familiar with.
React Server Components unlock a whole new set of possibilities for frontend apps. As the name suggests, Server Components are rendered on the server and do not send any JavaScript to the browser. They simplify data fetching and lead to more performant websites.
The App Router is built upon Server Components, providing an exceptionally good development experience and a highly performant website.
In this tutorial, you’ll learn the best, most up-to-date way to develop Next.js websites with Prismic, the Next.js App Router, and React Server Components.
🔗 Live Demo nextjs-tutorial-app-router.ve...
🔗 GitHub Project github.com/prismicio-communit...
---
As a developer, you should build websites using your favorite Jamstack framework.
Prismic allows you to build website sections, that you can connect to a website builder for your client or team. They will create pages from there and you get that content back to your code through our fast API.
► [Tutorial] Build a full website with Next.js 13, Prismic, Tailwind and Typescript:
• Next.js Full Website T...
► [Tutorial] Build a full website with Nuxt 3 and Prismic's new Page Builder:
• Nuxt 3 Crash Course - ...
► [Starters] Try Slice Machine on Nuxt: prismic.club/nuxt-starters
► [Starters] Try Slice Machine on Next.js: prismic.club/nextjs-starters
► [Learn more about Slice Machine]: prismic.club/slice-machine
---
Chapters:
📍00:00 Overview of the App Router
📍00:44 App Router's file structure
📍02:51 Fetching content
📍05:47 Creating pages
📍07:06 Creating layouts
📍08:12 Creating Slices
📍09:52 Experimental preview support
📍14:50 Using On-demand Revalidation
📍17:45 Wrap up