SDK and REST
Use getContoprixPage or createContoprixClient for common page, content, navigation, media, and search delivery.
Contoprix provides published page and content delivery, React rendering primitives, and Next.js server helpers for routing, preview, and cache revalidation without moving CMS credentials into browser code.
The current @contoprix/next package targets Next.js 16 and React 19, with a dedicated server entry point for App Router integrations.
The CMS, delivery boundary, Server Components, and browser experience each have a clear role.
Models, drafts, pages, media, and published versions
@contoprix/next/server, REST, or GraphQL
App Router, Server Components, routes, and caching
HTML and interactive React experiences
This is a framework-specific implementation of the broader headless CMS architecture.
These capabilities are present in the current SDK and reference Next.js application, rather than being placeholder integration claims.
App Router Page Delivery
The current SDK exports getContoprixPage from @contoprix/next/server. It reads server environment configuration and resolves a published page by its public path.
In a production route, distinguish a real delivery 404 from authentication, configuration, and network failures. Convert only the missing-page case to notFound() and let other failures reach normal application monitoring.
import { getContoprixPage } from "@contoprix/next/server";
import { ContoprixRenderer } from "@/contoprix/ContoprixRenderer";
export const revalidate = 60;
export default async function CmsPage({
params,
}: {
params: Promise<{ slug: string[] }>;
}) {
const { slug } = await params;
const page = await getContoprixPage({
slug: `/${slug.join("/")}`,
languageCode: "en",
});
return <ContoprixRenderer page={page} />;
}import { handleContoprixWebhook } from "@contoprix/next/server";
export async function POST(request: Request) {
return handleContoprixWebhook(request, {
secret: process.env.CONTOPRIX_WEBHOOK_SECRET!,
});
}Published Content Freshness
A time-based revalidation interval is a useful safety net. For faster updates, the SDK's webhook handler verifies the X-Contoprix-Signature HMAC before revalidating page paths and Contoprix cache tags.
Saving a draft does not update public delivery. Cache refresh belongs to the publish path, after editors have previewed and approved the change.
Read publishing and revalidation guidanceThe framework helpers support the boundaries a production Next.js site needs around drafts, credentials, locale selection, and cache freshness.
Next.js can consume either interface on the server. The framework does not force the content-query style.
Use getContoprixPage or createContoprixClient for common page, content, navigation, media, and search delivery.
Use the tenant-specific GraphQL delivery endpoint when a Server Component needs a precise combination of page, navigation, relation, or generated content-model fields.
Production Checklist
Routing, credentials, missing-content behavior, component coverage, publication, and cache invalidation should be verified together before a CMS-backed route is considered production-ready.
Build with Contoprix
Need visual page composition too? Review how the visual headless CMS workflow maps approved components into frontend rendering.