amazon web services - Nuxt build fails on AWS Amplify: Failed to find the deploy-manifest.json file in the build output - Stack

时间: 2025-01-06 admin 业界

I'm trying to deploy nuxt app on the AWS Amplify, but for some reason at the end of the build, I'm getting this error:

CustomerError: Failed to find the deploy-manifest.json file in the build output. Please verify that it exists within the "baseDirectory" specified in your buildSpec. If it's not there, we will also check the .amplify-hosting directory as a fallback. When using a framework adapter for hosting on Amplify, double-check that the adapter settings are correct.

The Nuxt build is correct. I also tested it locally.

I'm using nuxt 3 static build, and this is my build settings:

version: 1
applications:
  - appRoot: frontend-new
    frontend:
      phases:
        preBuild:
          commands:
            - npm install
        build:
          commands:
            - npm run generate
      artifacts:
        baseDirectory: .output/public
        files:
          - '**/*'
      cache:
        paths:
          - node_modules/**/*

This are my env settings on the AWS Amplify:

Did anyone face similar issues with nuxt3?