-
Notifications
You must be signed in to change notification settings - Fork 112
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
!!! CustomerError: Can't find required-server-files.json in build output directory #3869
Comments
I've also been experiencing the error "CustomerError: Can't find required-server-files.json in build output directory" for the past week on my Nextjs app. It doesn't seem to be related to any changes I've made, as I've sometimes been able to revert and then re-add commits to achieve a successful build, only to run into the same issue a few commits later. This is now completely blocking my deployments. |
Same issue here, Any response yet from Amplify team? |
Any updates on this? I've been unable to deploy new code for 2 weeks now and am getting desperate. If the Amplify team can't look into this, can anyone tell me the next best way to deploy an Amplify app? Cheers |
I seem to have fixed the issue by updating the line |
I am also getting this problem. The solution to update |
Got the same error after successful build of Next.js application :) I use Next.js v14 with { output: "export" } config. I run on custom build image with Node 20: public.ecr.aws/docker/library/node:20.11.0 |
The problem is if you are using ‘next’ or yarn dev/run dev for tests then the build (.next) is overriden and doesnt have production build anymore. Make sure you either use production build or run next build after completing tests or tests server.
Thank you,
Rayed bajwa
…________________________________
From: Anton Karpenko ***@***.***>
Sent: Saturday, January 27, 2024 2:55:19 PM
To: aws-amplify/amplify-hosting ***@***.***>
Cc: Rayed Bajwa ***@***.***>; Manual ***@***.***>
Subject: Re: [aws-amplify/amplify-hosting] !!! CustomerError: Can't find required-server-files.json in build output directory (Issue #3869)
Got the same error after successful build of Next.js application :)
I use Next.js v14 with { output: "export" } config.
I run on custom build image with Node 20: public.ecr.aws/docker/library/node:20.11.0
—
Reply to this email directly, view it on GitHub<#3869 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAH3BL67QHDUCXZIFUFEM7TYQVLSPAVCNFSM6AAAAABA57AKSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGMYTIMBUGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
LOL, but after a successful build and deployment, the website is not working... I love Apmlify (c) |
Any updates on this? Still facing the problem |
I'm facing this issue as well with next 14.1.4 app with SSG pages hosted on amplify. The next docs are explicit about using It builds locally but with my build settings like this, getting the Can't find required-server-files.json error on amplify.
|
I faced a similar problem when trying to host static Storybook files which is in Next.js dir. My issue was resolved by switching the platform from
Reference: https://docs.aws.amazon.com/amplify/latest/userguide/redeploy-ssg-to-ssr.html#update-platform Hopefully it could be helpful. |
No description provided.
The text was updated successfully, but these errors were encountered: