Skip to content

Incorrect deploy-manifest.json when building for AWS Amplify? #1285

@johannesstricker

Description

@johannesstricker

I think the generated deploy-manifest.json is incorrect when building on AWS Amplify. I've specified a list of supported image formats like so

export default defineNuxtConfig({
  routeRules,
  image: {
    format: ['webp'],
    presets: {...},
  },
  // ...
});

But the generated deploy-manifest.json lists all image formats:

// deploy-manifest.json
{
  "version": 1,
  "routes": [...],
  "imageSettings": {
    "sizes": [
      320,
      640,
      768,
      1024,
      1280,
      1536
    ],
    "formats": [
      "image/jpeg",
      "image/png",
      "image/webp",
      "image/avif"
    ],
    "minimumCacheTTL": 300,
    "domains": [],
    "remotePatterns": [],
    "dangerouslyAllowSVG": false
  },
  "computeResources": [
    {
      "name": "default",
      "entrypoint": "server.js",
      "runtime": "nodejs18.x"
    }
  ],
  "framework": {
    "name": "nuxt",
    "version": "3.9.3"
  }
}

Is that expected or is that a bug? Using @nuxt/[email protected].

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