Skip to content

how to use rehype-meta with next.js's mdx integration #1921

Answered by ChristianMurphy
godmar asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like next uses a specialized component to add metadata to the head of the page https://nextjs.org/learn/seo/crawling-and-indexing/metatags
It may take some component mapping to have the contents of the <head> tag mdx generates, to instead pass it to Next's <Head> component instead.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@godmar
Comment options

@godmar
Comment options

@ChristianMurphy
Comment options

@godmar
Comment options

Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
7 replies
@godmar
Comment options

@ChristianMurphy
Comment options

@wooorm
Comment options

@godmar
Comment options

@ChristianMurphy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants