UNPKG

@ai-growth/nextjs

Version:

Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering

54 lines (53 loc) 1.47 kB
/** * @fileoverview AI Growth Next.js CMS Integration Package * * This package provides seamless integration between Sanity CMS and Next.js applications, * featuring enterprise-grade SEO optimization, performance caching, lazy loading, * comprehensive error handling, and responsive image optimization. * * @version 1.2.0 * @author AI Growth Team * @license MIT */ // Re-export main components export { CmsProvider, CmsRouteHandler, DefaultTemplate, ErrorBoundary, SEOHead, OptimizedImage, LoadingSkeleton, FallbackContent, ThemeProvider, } from './components'; // Re-export templates export { ContentTemplate, PostTemplate, PageTemplate, BlogTemplate, } from './templates'; // Re-export main hooks export { useCmsContent, useCmsContentCached, useCmsContentList, } from './hooks'; /** * Current package version * @public */ export const version = '0.2.0'; /** * Default configuration values for the CMS integration * * @example * ```tsx * import { defaultConfig } from '@ai-growth/nextjs'; * * const config = { * ...defaultConfig, * projectId: 'your-project-id', * dataset: 'production' * }; * ``` * * @public */ export const defaultConfig = { /** Default Sanity API version */ apiVersion: '2023-05-03', /** Default route path pattern for CMS content */ routePath: '/cms/', }; /** * Default export containing package metadata and configuration * * @public */ export default { version, defaultConfig, };