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: nuxt-content-assets with nuxt og-image in static mode #287

Open
Bumbleboss opened this issue Dec 4, 2024 · 0 comments
Open

fix: nuxt-content-assets with nuxt og-image in static mode #287

Bumbleboss opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Bumbleboss
Copy link

🐛 The bug

I have been using nuxt-content-assets as a way to organize the media files within content directory.

The modules work perfectly together in dev mode, the og-image gets displayed as intended
Image

But when generating to static, things don't go as intended. Error is from cloudflare pages
Image

Compared to what is present in dev mode, this is the generated og image
Image

I am not entirely sure if this is an issue related to this module or nuxt-content-assets.

🛠️ To reproduce

https://stackblitz.com/edit/github-hgunsf-libjdy

🌈 Expected behavior

Og-image should be generated with media content fetched from nuxt-content-assets

ℹ️ Additional context

It appears that nuxt-content-assets cannot work on stackblitz, so it might be better to debug this locally instead

@Bumbleboss Bumbleboss added the bug Something isn't working label Dec 4, 2024
harlan-zw added a commit that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant