- Newest
- Most votes
- Most comments
I understand you're having issues deploying your Nuxt app on AWS Amplify. The 404 error you're encountering suggests that Amplify is not correctly serving your application. This could be due to a mismatch between your start command and the actual entry point of your Nuxt application.
For Nuxt applications, the start command typically depends on how you've set up your project. Instead of "node start server/index.mjs", you might want to try one of these commands in your Amplify configuration:
- "npm run start" - if you have a start script defined in your package.json
- "nuxt start" - for Nuxt 2 applications
- "node .output/server/index.mjs" - for Nuxt 3 applications in server-side rendering mode
To resolve this issue:
- Check your package.json file to ensure you have the correct start script defined.
- Verify that your Amplify configuration (amplify.yml or build settings in the Amplify console) is using the correct build and start commands for your Nuxt version.
- Make sure all necessary dependencies are installed during the build process.
- Review your Amplify build logs to see if there are any errors during the build or deploy stages.
If the issue persists after trying these steps, you may need to reach out to AWS Support for more specific assistance with your Amplify configuration and Nuxt deployment. They can provide tailored guidance based on your exact setup and build logs.
Sources
on amplify react app deploy issue | AWS re:Post
Unable to deploy Next JS app on Amplify (Please reach out to your support representative.) | AWS re:Post
answered a year ago
version: 1 frontend: phases: preBuild: commands: - corepack enable - npx --yes nypm i build: timeoutInMinutes: 30 commands: - pnpm run build artifacts: baseDirectory: .output files: - "**/*"
settings: nodeVersion: "18" startCommand: "node .output/server/index.mjs"
my start in package.json is "node .output/server/index.mjs"
still 404 error plz check my amplify.yaml
answered a year ago
Relevant content
asked a year ago
asked 4 years ago
- AWS OFFICIALUpdated 5 years ago
- AWS OFFICIALUpdated 5 years ago
