Skip to main content
Every Replo site mounts these once, in app/layout.tsx and next.config.ts. They are the most-imported modules in the SDK.

providers/replo-provider

@replohq/sdk/providers/replo-provider

ReploProvider

Root provider for a Replo site. Mount it once in app/layout.tsx, wrapping the whole app. It sets up the React Query client every data loader reads from, the analytics layer, and cart state, so useCart, useAnalytics, and the loader components only work beneath it.

next/config

@replohq/sdk/next/config

siteConfig

Builds the site’s next.config.ts, layering your options over Replo’s platform defaults (image loader, preview origins, build settings). Add keys freely: nested blocks are deep-merged, and platform wiring always wins, so setting one nested option never drops the rest of the block. Export the result as the default from next.config.ts. A site that needs no customization can re-export this module’s own default instead.
Returns: The merged Next.js config.
Also exported

next/image-loader

@replohq/sdk/next/image-loader Exports

next/open-next

@replohq/sdk/next/open-next Exports

lib/buildMetadata

@replohq/sdk/lib/buildMetadata Exports