feat: trim integration pages from 75 to 25 + migrate to MDX

- Add dedicatedPage flag to integration registry (25 true, 50 false)
- Delete hardcoded nextjs/react/vue/wordpress route pages (wrong metadata)
- Hub page routes non-dedicated integrations to /integrations/script-tag
- Add 301 redirects for 50 removed slugs → /integrations/script-tag
- Migrate guide content from TSX to MDX (content/integrations/*.mdx)
- Add gray-matter, next-mdx-remote, remark-gfm dependencies
- Add content loader (lib/integration-content.ts) matching ciphera-website pattern
- Add prebuild script for integration guide index generation
- Sitemap reduced from 83 to 35 URLs with real lastmod dates
- Remove seoDescription from registry (now in MDX frontmatter)
This commit is contained in:
Usman Baig
2026-03-29 00:28:47 +01:00
parent 20d7bdd482
commit 066f1288f1
42 changed files with 2515 additions and 4233 deletions

View File

@@ -76,12 +76,31 @@ const nextConfig: NextConfig = {
]
},
async redirects() {
const removedIntegrations = [
'solidjs', 'qwik', 'preact', 'htmx', 'ember',
'jekyll', 'docusaurus', 'vitepress', 'hexo', 'mkdocs',
'joomla', 'strapi', 'sanity', 'contentful', 'payload',
'craftcms', 'statamic', 'typo3', 'kirby', 'grav', 'umbraco',
'storyblok', 'prismic', 'shopware', 'magento',
'woocommerce', 'bigcommerce', 'prestashop',
'blogger', 'substack', 'linktree', 'weebly', 'gitbook',
'gridsome', 'readthedocs', 'sphinx', 'readme',
'bubble', 'discourse', 'hubspot', 'notion',
'cloudflare-pages', 'netlify', 'vercel', 'github-pages',
'firebase', 'render', 'flutter', 'amp', 'carrd',
]
return [
{
source: '/dashboard',
destination: '/',
permanent: false,
},
...removedIntegrations.map((slug) => ({
source: `/integrations/${slug}`,
destination: '/integrations/script-tag',
permanent: true,
})),
]
},
async rewrites() {