HANDS-ON IMPLEMENTATION OF NEXT.JS STANDALONE BUILD FOR SIGNIFICANT DEPLOYMENT SIZE REDUCTION
Abstract
raditional Next.js application deployment packages often result in extremely large file sizes, reaching over 1.5 GB, which impacts deployment efficiency and application performance. This research implements the Next.js standalone build feature on the LPPM v1 system (Research Proposal Management System) built using Next.js 16, TypeScript, Prisma ORM, and PostgreSQL. Baseline measurements show a traditional deployment size of 1,609.82 MB. After implementing standalone build with output: 'standalone' configuration and outputFileTracingIncludes for Prisma integration, the deployment size reduced to 384.83 MB—a reduction of 76.1% (1,225 MB). Performance testing shows cold start time improvement from 4 seconds to 0.109 seconds (97.3% faster), while deployment upload time decreased from 21 minutes to 5 minutes on a 10 Mbps connection. Comprehensive functionality validation confirms no feature regression across 80+ API endpoints, NextAuth.js authentication system, Prisma database operations, and file uploads. Cost-benefit analysis projects annual savings of $15-25 for storage and 32 hours for deployment time. The results of this research prove that standalone build mode is ready for production environments without sacrificing application functionality.
Full Text:
PDFReferences
Bibliograpby
Angojay. (2025). Optimizing Next.js Docker images with standalone mode. Dev.to. Retrieved from https://dev.to
Appwrite. (2025). Next.js output modes—standalone vs default build. Appwrite Blog. Retrieved from https://appwrite.io/blog/post/nextjs-output-modes
BrowserStack. (2025). Top software development metrics to track. BrowserStack Guide. Retrieved from https://browserstack.com
IEEE. (2024). Formatting guidelines for IEEE conference papers. Academic.net. Retrieved from https://www.academic.net/show-34-461-1.html
Jartarghar, H. A., Salanke, G. R., Kumar, A. R., Sharvani, G. S., & Dalali, S. (2022). React apps with server-side rendering: Next.js. Journal of Telecommunication, Electronic and Computer Engineering, 14(4), 25-29. doi: 10.54554/jtec.2022.14.04.005
KubeGrade. (2025). Kubernetes cost optimization case studies. Retrieved from https://kubegrade.com/kubernetes-cost-optimization-case-studies/
Next.js Review Paper. (2024). Comprehensive review of Next.js optimization strategies and performance metrics [Unpublished manuscript]. Available at SSRN: https://ssrn.com/abstract=4831070
Nugroho, A., & Sugandi, A. (2024). Meningkatkan performa frontend dengan menggunakan framework Next.js dalam pengembangan website. Journal of Cyber Health and Computer, 3(4), 15-24.
Performance & Optimization Paper. (2024). Performance issues and optimizations in JavaScript [Conference paper]. International Conference on Computational and Intelligent Data Science. Available at SSRN: https://ssrn.com/abstract=4121058
Savenko, M., & Babii, K. (2025). Performance optimization strategies for large-scale web applications using Next.js. IEEE Access, 13, 217376-217390. doi: 10.1109/ACCESS.2025.3647563
St-Amour, V., & Guo, S. (2015). Optimization coaching for JavaScript. In Leibniz International Proceedings in Informatics (LIPIcs): ECOOP 2015 (Vol. 37, pp. 271-295). Schloss Dagstuhl.
Svedas, E. (2024). Study and usage of Next.js for web application development [Bachelor's thesis]. University of Applied Sciences. Retrieved from http://repository.edu
Vercel, Inc. (2025). next.config.js options: output. Next.js Documentation. Retrieved from https://nextjs.org/docs/pages/api-reference/config/next-config-js/output
Zhang, Y., Wang, L., & Chen, M. (2025). An optimized approach for container deployment. PMC, 11(1), Article PMC11723549. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC11723549/
DOI: https://doi.org/10.3059/insis.v0i0.28802
DOI (PDF): https://doi.org/10.3059/insis.v0i0.28802.g15035
Refbacks
- There are currently no refbacks.



