UNPKG

@dijitrak/react-nextjs-seo-plugin

Version:

A modern, user-friendly SEO plugin for React and Next.js with multilingual support and comprehensive optimization tools

35 lines (31 loc) 818 B
// Main entry point export * from './core/meta.js'; export * from './core/jsonld.js'; export * from './core/sitemap.js'; export * from './core/robots.js'; export * from './types/index.js'; export * from './api/client.js'; // Plugin configuration let config = { apiUrl: '/api/seo', defaultTitle: '', defaultDescription: '', defaultImage: '', defaultTwitterCard: 'summary_large_image' }; /** * Initialize the SEO Plugin with custom options * @param {object} options Configuration options */ export function initSEOPlugin(options = {}) { config = { ...config, ...options }; console.log('SEO Plugin initialized with options:', config); return config; } /** * Get the current plugin configuration * @returns {object} Current configuration */ export function getConfig() { return { ...config }; }