Skip to content

fix Instagram SSR hydration embeds#92

Merged
rosethornbush merged 2 commits into
mainfrom
fix/instagram-ssr
Jun 29, 2026
Merged

fix Instagram SSR hydration embeds#92
rosethornbush merged 2 commits into
mainfrom
fix/instagram-ssr

Conversation

@rosethornbush

Copy link
Copy Markdown
Contributor

Summary

  • preserve the old Instagram GraphQL parser in instagram_old.ts
  • replace active Instagram fetching with logged-out SSR hydration parsing
  • map image posts, carousels, and reels into the existing normalized post shape

Why

Instagram's GraphQL route no longer returns the needed public media structure reliably. Logged-out pages include the media payload in ScheduledServerJS / RelayPrefetchedStreamCache hydration data when fetched with browser-style headers.

Validation

  • pnpm exec tsc -p packages/platforms/tsconfig.json --noEmit --pretty false
  • platforms:lint
  • platforms:fmt/check
  • live smoke against one image post, one carousel post, and one reel with the provided EMBED_USER_AGENT

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 26eddfc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
embedly-docs 26eddfc Commit Preview URL

Branch Preview URL
Jun 29 2026, 02:28 AM

@rosethornbush
rosethornbush marked this pull request as ready for review June 29, 2026 02:28
@rosethornbush
rosethornbush merged commit 399dc9d into main Jun 29, 2026
3 checks passed
@rosethornbush rosethornbush changed the title [codex] fix Instagram SSR hydration embeds fix Instagram SSR hydration embeds Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant