Skip to content

NuxtImg integration with Blob storage #850

@nickkurkan

Description

@nickkurkan

Hi guys,
First of all, thanks for your great work on NuxtHub!

I'm having trouble integrating NuxtImg with Blob Storage. I managed to get it to work with this configuration:

 hub: {
   blob: {
       driver: "vercel-blob",
     },
   },
image: {
  provider: "vercel",
},

There is a missing step in the documentation that makes it work and it was in @onmax initial commit to documentation.

Image

However, it doesn't work during local development with fs-blob and IPX. NuxtImg doesn't recognize the path /images and appends the prefix /_ipx to it. I also tried adding the alias to the image configurations, but that didn't help either. The only way it works is if I replace NuxtImg with the default tag.

hub: {
    blob: {
      driver: "fs",
      dir: ".data/blob",
    },
  },
 image: {
    alias: {
      images: "/images",
    },
  },

I apologize if I misunderstood something, but the current documentation is a bit confusing. It looks like it should work out of the box, but it doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions