Developers spend much time and effort mixing many technologies to produce an entire web application. Frameworks like Next.js help. Next.js neatly organizes packages and configuration files. Its full-stack web application framework lets developers create front-end and back-end code in one place, making it unique. It simplifies the developer's life and speeds up product shipping. However, full-stack frameworks like next.js must compile the entire code base for every production build because we write it all in one location. There was room for improvement. In this article, we will explain how we may increase the efficiency of a production build next.js app utilizing strategies and coding patterns we learned when constructing a badminton data analytics-based web app.