Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johannesstricker opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@johannesstricker
Copy link

johannesstricker commented Mar 12, 2024

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/image@1.4.0.

@johannesstricker johannesstricker changed the title Incorrect amplify config? Incorrect amplify config image formats? Mar 12, 2024
@johannesstricker johannesstricker changed the title Incorrect amplify config image formats? Incorrect deploy-manifest.json when building for AWS Amplify? Mar 12, 2024
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

No branches or pull requests

1 participant