Recipes

Developer preview

This feature is in developer preview. Use with caution as it may change unexpectedly. For more information, contact us.

Each recipe gives a solution for one task, with complete code. The recipes start from the app of the Tutorial.

RecipeTask
Resolve compositions on a pageRender more than one composition, change composition data before render, or render a composition in an ordinary Next.js route.
Localize your appShow each page in the correct locale, in the live site, the preview and the static build.
Call Uniform APIs on the serverGet compositions, routes, project map nodes and the manifest with the Next.js data cache.
RecipeTask
Global header and footerShow a header and a footer that authors manage in Uniform on all pages.
SEOSet the page title and description from the composition, make a sitemap from the project map, and set canonical URLs.
Custom 404 pageShow a 404 page, with content from Uniform if you want.
Hybrid pagesAdd Uniform regions to pages that are built in Next.js already.
RecipeTask
ImagesShow image parameters with next/image.
LinksShow link parameters with next/link.
Data fetchingGet more data in a component, for example from a product API.
Client componentsPut an interactive component in a slot.
FormsPut a form in a slot, and send it to a Server Action.