Skip to content

Conversation

oritwoen
Copy link
Contributor

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

By default, for local provider Strapi endpoints return an media URL in the form /uploads/image-[hash].png.

This is bit problematic and require assign two variables or custom composable to get full url to <img tag.

So I add to the repository appropriate composable that can be used in the application code without additional manipulation of strings.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@benjamincanac benjamincanac changed the title feat(composable): add useStrapiMedia feat(composables): add useStrapiMedia Jan 16, 2023
@benjamincanac benjamincanac merged commit 201303f into nuxt-modules:dev Jan 16, 2023
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.

2 participants