Skip to content

Fix broken source links in integrations library - #21851

Merged
joethreepwood merged 1 commit into
masterfrom
posthog/fix-integrations-library-links
Nov 2, 2026
Merged

joethreepwood merged 1 commit into
masterfrom
posthog/fix-integrations-library-links

Conversation

@joethreepwood

Copy link
Copy Markdown
Contributor

Changes

This PR replaces #21555 by Brian. That PR has unsigned commits, so it cannot merge. This PR has a signed commit.

Some sources in the integrations library share a slug with a hand-written docs page. For example, PlanetScale MySQL and PlanetScale Postgres. Before this change, Gatsby created an API-generated page at the same path, and that page replaced the hand-written page. Thus PlanetScale MySQL opened a page with only Postgres docs.

Now gatsby/createPages.ts does not create an API-generated source page when a hand-written docs page already uses that path.

The other part of #21555 (the mdx { fields { slug } } field in the integrations library sources query) is already on master, so this PR does not include it.

Why: Some links in the integrations library open the wrong docs page. Brian is out, so this PR rebuilds the approved fix with a verified signature.

This is not a visual change, so it has no screenshots.

Checklist

  • I've read the docs and/or content style guides.
  • Words are spelled using American English
  • Use relative URLs for internal links
  • I've checked the pages added or changed in the Vercel preview build
  • If I moved a page, I added a redirect in vercel.json (no pages moved)

Prettier (v2, the repo version) passes on the changed file. I did not run pnpm build or the dev server in this environment. The code is the same as #21555, which had a passing pnpm build. Please check /docs/data-pipelines/sources/planetscale in the Vercel preview.


Created with PostHog from a Slack thread

🤖 Generated with Claude Code

Replicates #21555. Gatsby no longer creates an API-generated source page at a path that a hand-written docs page already uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Generated-By: PostHog Desktop
Task-Id: 2563cf44-9c5b-4002-acd4-621058beeeb8
@joethreepwood joethreepwood self-assigned this Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Nov 02, 2026 02:52PM

@github-actions github-actions Bot added the website About the website (beyond just landing pages) label Nov 2, 2026
@joethreepwood
joethreepwood marked this pull request as ready for review November 2, 2026 14:36
@joethreepwood
joethreepwood requested a review from a team as a code owner November 2, 2026 14:36
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

10.26 MiB (+0.0 KiB / +0.0%)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
✅ app 20.89 MiB (+1.2 KiB / +0.0%) report-only 2119
Largest modules in the app closure
Module Size
./src/data/mcp-tools.json 1468.1 KiB
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 838.0 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/x-ray.mjs 481.2 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/trenchcoat.mjs 450.8 KiB
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules 395.1 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/im-the-driver.mjs 385.8 KiB
./src/hooks/useCustomers.tsx + 61 modules 381.8 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/tourist.mjs 364.6 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./src/components/ProductComparisonTable/index.tsx + 130 modules 314.3 KiB
./node_modules/.pnpm/framer-motion@14.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs + 126 modules 287.2 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/doll-house.mjs 284.1 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).

@joethreepwood
joethreepwood merged commit 0dbc442 into master Nov 2, 2026
24 checks passed
@joethreepwood
joethreepwood deleted the posthog/fix-integrations-library-links branch November 2, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website About the website (beyond just landing pages)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants