Next 14 app, was working fine before but then stopped after some changes. Ran out of memory so adjusted build script with NODE_OPTIONS='--max-old-space-size=8192' next build".
Now I get:
2025-02-07T08:33:02.117Z [INFO]: Linting and checking validity of types ...
2025-02-07T08:33:26.041Z [INFO]: # Completed phase: build
## Completed Frontend Build
2025-02-07T08:33:26.218Z [INFO]: ## Build completed successfully
2025-02-07T08:33:26.233Z [INFO]: # Starting caching...
2025-02-07T08:33:26.245Z [INFO]: # Creating cache artifact...
2025-02-07T08:33:47.475Z [INFO]: # Created cache artifact
2025-02-07T08:33:47.574Z [INFO]: # Uploading cache artifact...
2025-02-07T08:34:06.650Z [INFO]: # Uploaded cache artifact
2025-02-07T08:34:06.736Z [INFO]: # Caching completed
**2025-02-07T08:34:06.747Z [ERROR]: !!! CustomerError: Can't find required-server-files.json in build output directory**
2025-02-07T08:34:06.748Z [INFO]: # Starting environment caching...
2025-02-07T08:34:06.748Z [INFO]: # Environment caching completed```
Which causes deploy to fail. Any idea what I can explore to fix this?