Skip to content

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

@Bumbleboss

Description

@Bumbleboss

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions