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:
50
content/integrations/remix.mdx
Normal file
50
content/integrations/remix.mdx
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
title: "Remix"
|
||||
description: "Add Pulse analytics to your Remix application via the root route. Simple script tag in app/root.tsx."
|
||||
category: "framework"
|
||||
brandColor: "#000000"
|
||||
officialUrl: "https://remix.run/docs"
|
||||
relatedIds: ["react", "nextjs"]
|
||||
date: "2026-03-28"
|
||||
---
|
||||
|
||||
Add the Pulse script to your `app/root.tsx` so it's included on every route.
|
||||
|
||||
---
|
||||
|
||||
## Add script to app/root.tsx
|
||||
|
||||
The root route is the top-level layout in Remix. Add the Pulse script inside the `<head>` section.
|
||||
|
||||
<CodeBlock filename="app/root.tsx">{`import {
|
||||
Links,
|
||||
Meta,
|
||||
Outlet,
|
||||
Scripts,
|
||||
ScrollRestoration,
|
||||
} from '@remix-run/react'
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charSet="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<Meta />
|
||||
<Links />
|
||||
<script
|
||||
defer
|
||||
data-domain="your-site.com"
|
||||
src="https://pulse.ciphera.net/script.js"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<Outlet />
|
||||
<ScrollRestoration />
|
||||
<Scripts />
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}`}</CodeBlock>
|
||||
|
||||
For more details, see the [Remix root docs](https://remix.run/docs/en/main/file-conventions/root).
|
||||
Reference in New Issue
Block a user