Skip to content

Wrong behaviour of vercel provider #1107

@korve

Description

@korve

I'm using the vercel provider right now and i've come across what i think is a major bug in the provider.

The problem arises when using the screens option for NuxtImg. Lets take this screens value for example: 95px tablet:160px desktop:95px. I would imagine that the image would have a size of 95px on mobile and desktop and 160px for tablets. The image.screens configuration could look like this:

{
    tablet: 768,
    desktop: 1280
}

The actual behaviour is that the image is resized to the nearest screen breakpoint! This seems illogical to me. The size should be the actual size provided for the screen, not the breakpoint width. Did i misunderstand the screens attribute or is this a limitation of vercel?

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