Skip to content

feat: open graph link preview#961

Merged
ThibaudDauce merged 28 commits intomainfrom
add_open_graph_link_preview
Mar 10, 2026
Merged

feat: open graph link preview#961
ThibaudDauce merged 28 commits intomainfrom
add_open_graph_link_preview

Conversation

@ThibaudDauce
Copy link
Contributor

@ThibaudDauce ThibaudDauce commented Feb 25, 2026

@ThibaudDauce ThibaudDauce force-pushed the add_open_graph_link_preview branch from 1e29d85 to e0d78f4 Compare February 26, 2026 15:50
Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

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

Let's deploy this on dev and see how it behaves?

"husky": "^9.1.7",
"lightningcss": "^1.29.3",
"lint-staged": "^16.1.2",
"nuxt-og-image": "6.0.0-beta.34",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we wait for a stable release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since it's not critical, I'm fine with having a beta release here (and avoid having a PR staying open a long time). But as you wish…

Copy link
Contributor

Choose a reason for hiding this comment

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

Depends how you mature you think this is already

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really mature (see the two bugs we encounter) but it works and the result is here?

Copy link
Contributor

Choose a reason for hiding this comment

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

What a hell this fonts refactoring 😅 Congrats for sorting this out!

@ThibaudDauce ThibaudDauce changed the title Add open graph link preview feat: open graph link preview Mar 9, 2026
// Workaround: encode the dot before file extension to prevent nuxt-og-image from stripping `.png` in prop values
// See https://github.com/nuxt-modules/og-image/pull/493
defineOgImage('ObjectPage.takumi', {
objectTitle: dataservice.value?.title,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any concern on props sanitization since it is user input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so

@ThibaudDauce ThibaudDauce merged commit 79ed477 into main Mar 10, 2026
15 of 16 checks passed
@ThibaudDauce ThibaudDauce deleted the add_open_graph_link_preview branch March 10, 2026 10:32
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.

Implementer les link preview

3 participants