image icon indicating copy to clipboard operation
image copied to clipboard

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

Open johannesstricker opened this issue 1 year ago • 0 comments

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].

johannesstricker avatar Mar 12 '24 09:03 johannesstricker