Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly handle head propagation in content layer deferred rendering #12014

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Sep 17, 2024

Changes

Previously we were not correctly handling head propagation for MDX and Markdoc entries in content layer. This PR ensures the correct flag is included in the resolved Vite ID, and that these assets are correctly included when rendering.

Testing

The MDX head propagation test is updated to use content layer

Docs

Copy link

changeset-bot bot commented Sep 17, 2024

🦋 Changeset detected

Latest commit: 0cb06d0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

@github-actions github-actions bot added pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Sep 17, 2024
@ascorbic ascorbic changed the title chore: run MDX tests against content layer fix: correctly handle head propagation in content layer deferred rendering Sep 18, 2024
@ascorbic ascorbic marked this pull request as ready for review September 18, 2024 10:58
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks. Shouldn't this fix be sent to main instead?

@ascorbic
Copy link
Contributor Author

I guess there's nothing to prevent us fixing this in 4.x. I've been avoiding it in other stuff because it touches stuff that's changed, but this should be fine. I'll see if I can rebase it cleanly

@ascorbic ascorbic changed the base branch from next to main September 18, 2024 13:45
@ascorbic
Copy link
Contributor Author

Let's see if this works...

@ematipico
Copy link
Member

It's just a thought. Considering that we will be in beta for a few months, we should ponder if this fix is worth having in v4.* too.

@ascorbic ascorbic merged commit 53cb41e into main Sep 18, 2024
13 checks passed
@ascorbic ascorbic deleted the content-layer-head-prop branch September 18, 2024 14:15
This was referenced Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants