The author faced resource constraints and deployment failures due to storage limitations when using a small VM for Next.js deployments.
The author decided to move the build process to GitHub Actions, leveraging the free computing power offered by GitHub.
By using GitHub Actions, the author was able to upload the built code as an artifact and continue the setup using a self-hosted runner on their server.
The Next.js standalone output option and additional steps to copy necessary files improved the deployment pipeline and freed up the production server's resources.