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

SSR Image Optimization Feature - unable to deploy #3873

Closed
4 tasks done
alexnguyennz opened this issue Dec 21, 2023 · 4 comments
Closed
4 tasks done

SSR Image Optimization Feature - unable to deploy #3873

alexnguyennz opened this issue Dec 21, 2023 · 4 comments
Labels
archived This issue has been locked. question Further information is requested

Comments

@alexnguyennz
Copy link

Before opening, please confirm:

App Id

d1palg3fcdvx2w

AWS Region

us-east-1

Amplify Hosting feature

SSR

Question

Hi I'm having issues deploying a project using a deploy manifest with Image Optimization routes and settings.

For example, using the default examples from this page and this one (under "The following example demonstrates the imageSettings attribute"):

// have omitted other routes and the required settings e.g. `computeResources`, `framework`
{
          version: 1,
          routes: [
            {
              path: "/images/*",
              target: {
                kind: "ImageOptimization",
                cacheControl: "public, max-age=31536000, immutable",
              },
            },
          ],
          imageSettings: {
            sizes: [100, 200],
            domains: ["example.com"],
            remotePatterns: [
              {
                protocol: "https",
                hostname: "example.com",
                port: "",
                pathname: "/**",
              },
            ],
            formats: ["image/webp"],
            minumumCacheTTL: 60,
            dangerouslyAllowSVG: false,
          }
        }

leads to an error of We failed to validate the deploy-manifest.json file found in your build output directory - An invalid 'deploy-manifest.json' file was provided.. I've tried a few different variations but am not able to get past this error. Any idea what needs to be changed?

Thanks for any assistance.

@alexnguyennz alexnguyennz added the question Further information is requested label Dec 21, 2023
@gentksb
Copy link

gentksb commented May 21, 2024

Did you define compute route?

If you specify an ImageOptimization route, you must also specify a Compute route. This is required because image optimization is not yet supported for purely static applications.
https://docs.aws.amazon.com/amplify/latest/userguide/ssr-deployment-specification.html

@alexnguyennz
Copy link
Author

Hi I found out a few months ago that this was actually due to a typo in the AWS documentation example for the spec so that was throwing off the build. Forgot about this issue. Thanks.

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label May 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants