Hi, I’m trying to deploy a NextJS app. I’ve deployed it a few times but now consistently get the following error. How can I debug this?
I’m running flyctl deploy --verbose
. I have a fly.toml
and .dockerignore
file; Fly is generating the docker file. On an M1 Macbook Pro.
info - Loaded env from /workspace/.env.local
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info - Checking validity of types...
warn - No ESLint configuration detected. Run next lint to begin setup
info - Creating an optimized production build...
warn - using beta Middleware (not covered by semver) - https://nextjs.org/docs/messages/beta-middleware
info - Compiled successfully
info - Collecting page data...
Killed
ERROR: failed to build: exit status 137
Error failed to fetch an image or build from source: executing lifecycle: failed with status code: 51