<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/nextjs/best-of/2024/06" -->

---
title: Best Next.js posts — June 2024 | daily.dev
description: The most upvoted Next.js posts from June 2024, curated by the daily.dev community.
canonical: https://daily.dev/tags/nextjs/best-of/2024/06
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/nextjs/best-of/2024/06
og:type: website
og:site_name: daily.dev
og:title: Best Next.js posts — June 2024 | daily.dev
og:description: The most upvoted Next.js posts from June 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Next.js — June 2024

1. 1  
[](/posts/get-the-best-performance-on-your-next-js-app-fx7t4hrba "Get the Best Performance on Your Next.js App")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
5m read time • Jun 05, 2024  
### Get the Best Performance on Your Next.js App  
Learn how to optimize performance on your Next.js app with tips like loading only the necessary JavaScript and CSS, lazy loading dependencies, using the Next.js Image component for image optimization, preferring CSS over JavaScript, avoiding loaders at the beginning, utilizing font optimization, optimizing scripts, removing unused packages, checking bundle size, and using server components for improved rendering and caching.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/645768893610c6a2cac6bade6e1257cf?_a=AQAEuiZ)  
572  
18
2. 2  
[](/posts/things-you-don-t-know-about-next-js-1oeqpqzuh "Things You Don’t Know About Next.js")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
1m read time • Jun 04, 2024  
### Things You Don’t Know About Next.js  
NextJS 14 promises a faster, more enjoyable development journey for React developers. Learn about NextJS concepts, using the Metadata API, and creating private routes.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/a02a97d984c981d07f73e88b4d427ece?_a=AQAEuiZ)  
310  
17
3. 3  
[](/posts/zustand-in-next-js-14-with-ts--0neisn4k4 "Zustand in Next.js 14 (with ts)")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
5m read time • Jun 25, 2024  
### Zustand in Next.js 14 (with ts)  
Learn how to use Zustand, a simple and scalable state management solution, in a Next.js project with TypeScript. The post guides you through setting up a new project, integrating Zustand, and creating a state store. It also covers adding actions to manage the state and persisting state data using localStorage.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/48c214c1595903a3f18659e22d15398a?_a=AQAEuiZ)  
284  
16
4. 4  
[](/posts/building-an-e-commerce-store-with-nextjs-ttk9bkoaw "Building An E-Commerce Store With NextJS")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
16m read time • Jun 07, 2024  
### Building An E-Commerce Store With NextJS  
Learn how to build an e-commerce store with Next.js using tools like Appwrite, Next.js, Novu, React Icons, and Stripe. The tutorial covers building the application interface, adding Appwrite to the application, performing CRUD operations with Appwrite, authenticating users with Appwrite, adding Stripe payment checkout, and sending in-app and email notifications with Novu.

+5  
![Post Cover image](https://media.daily.dev/image/fetch/s--hMRF1SjH--/f_auto,pg_1,q_auto/https://media.dev.to/cdn-cgi/image/width%3D1000%2Cheight%3D500%2Cfit%3Dcover%2Cgravity%3Dauto%2Cformat%3Dauto/https%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fuploads%252Farticles%252F2c2dw3gv0p27uo1lv8e9.gif?_a=BAMAMiZY0)  
194  
7
5. 5  
[](/posts/build-a-landing-page-with-ai-and-next-js-fdawnrtl4 "Build a Landing Page with AI and Next.js")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
13m read time • Jun 11, 2024  
### Build a Landing Page with AI and Next.js  
Learn how to build a landing page using Vercel's AI UI generator called v0 and Next.js. Generate UI using natural language prompts, iterate and refine the design, customize the visual style with the theme editor, and export the code to use in your Next.js project.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/c6b7fcf15caadbb93ef7c593df1ff07f?_a=AQAEuiZ)  
192  
8
6. 6  
[](/posts/mastering-shadcn-ui-components-y2dtky2bq "Mastering Shadcn UI Components")  
[![freecodecamp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp)](/tags/[tag]/best-of/[year]/[month])  
2m read time • Jun 28, 2024  
### Mastering Shadcn UI Components  
A comprehensive course on freeCodeCamp.org's YouTube channel teaches how to master Shadcn, a toolset providing highly customizable and accessible React components. It covers the main UI components, their integration with React or Next.js projects, and the ability to customize them via CSS variables or Tailwind CSS for consistent theming. This course is beneficial for both beginners and experienced developers looking to speed up their development process and maintain control over component styling and behavior.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/fa5fe206a5b15bad655cd4a67a4842c3?_a=AQAEuiZ)  
183  
4
7. 7  
[](/posts/when-your-serverless-computing-bill-goes-parabolic--1fwwbssk3 "when your serverless computing bill goes parabolic...")  
Video  
[![fireship's profile](https://media.daily.dev/image/upload/s--75ndqrkr--/f_auto,t_logo/v1702882094/logos/fireship.jpg)](/tags/[tag]/best-of/[year]/[month])  
3m watch time • Jun 07, 2024  
### when your serverless computing bill goes parabolic...  
Learn how a developer received a massive serverless bill from Versell and explore tools and alternatives to avoid the same situation. Discover tips for managing serverless costs and find out the consequences of failing to set a budget limit.

+3  
![Post Cover image](https://i.ytimg.com/vi/SCIfWhAheVw/sddefault.jpg)  
133  
12
8. 8  
[](/posts/next-js-and-next-auth-v5-guide-to-social-logins-oauth--gupp1hbuo "Next.js and Next-Auth V5: Guide to Social Logins(OAuth)")  
[![Tapas Adhikary's profile](https://lh3.googleusercontent.com/a-/AOh14GhN71PeWrtSoinbdnOhZS9usr2nbP111YlpswhWaBg=s100)](https://daily.dev/atapas)  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
13m read time • Jun 13, 2024  
### Next.js and Next-Auth V5: Guide to Social Logins(OAuth)  
Learn how to set up authentication using OAuth providers like Google and GitHub in Next.js using Next-Auth V5.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/242eba2ae497c553ab77f2483a820d71?_a=AQAEuiZ)  
130  
15
9. 9  
[](/posts/handling-file-uploads-in-next-js-using-uploadthing-jj7o72qqm "Handling file uploads in Next.js using UploadThing")  
[![logrocket's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/logrocket)](/tags/[tag]/best-of/[year]/[month])  
19m read time • Jun 21, 2024  
### Handling file uploads in Next.js using UploadThing  
UploadThing is an open-source tool designed to simplify file uploads in full-stack TypeScript applications. By leveraging this tool, developers can effortlessly handle file uploads, manage authentication, and maintain a seamless user experience. UploadThing integrates well with Next.js, and it offers customizable upload parameters, secure storage solutions, and serverless functions to handle various processes like metadata storage and callback notifications. The guide demonstrates setting up UploadThing, integrating it with Next.js, and utilizing components to upload and manage files effectively.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/e28ce2a091beae6e8cc6f4ddadaea230?_a=AQAEuiZ)  
128  
5
10. 10  
[](/posts/how-to-build-a-to-do-list-app-with-an-embedded-ai-copilot-next-js-gpt4-copilotkit--nsdsfr7l6 "How to build: a To-Do list app with an embedded AI copilot (Next.js, GPT4, & CopilotKit)")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
13m read time • Jun 04, 2024  
### How to build: a To-Do list app with an embedded AI copilot (Next.js, GPT4, & CopilotKit)  
Learn how to build a To-Do list app with an embedded AI copilot using Next.js and CopilotKit. Prerequisites include a basic understanding of React or Next.js. Integrate AI functionalities using CopilotKit and generate to-do lists with the in-app chatbot.

+3  
![Post Cover image](https://media.daily.dev/image/fetch/s--rZ-6gkva--/f_auto,pg_1,q_auto/https://media.dev.to/cdn-cgi/image/width%3D1000%2Cheight%3D500%2Cfit%3Dcover%2Cgravity%3Dauto%2Cformat%3Dauto/https%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fuploads%252Farticles%252Fj5ha1ty5cu203to1ma04.gif?_a=BAMAMiZY0)  
128  
4
11. 11  
[](/posts/next-js-server-actions-with-next-safe-action-obd0w6yb6 "Next.js Server Actions with next-safe-action")  
[![Dave Gray's profile](https://media.daily.dev/image/upload/s--clrT2u_3--/f_auto,q_auto/v1701728725/avatars/avatar_D7hdzhd7D1HmGj8InvREE)](https://daily.dev/yesdavidgray)  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
8m read time • Jun 29, 2024  
### Next.js Server Actions with next-safe-action  
Learn how to enhance your Next.js App Router project by implementing type-safe and validated server actions using the next-safe-action library. The post demonstrates the benefits of using next-safe-action by comparing the server action and client component code before and after refactoring. It highlights the improvements in structure, ease-of-use, and reduction of boilerplate code, especially in client-side form handling using react-hook-form and Zod validation.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/28892ed02b5bb8161ae919e3600d25fe?_a=AQAEuiZ)  
99  
8
12. 12  
[](/posts/implementing-rate-limiting-in-api-routes-with-express-and-next-js-8wo6bm6l2 "Implementing Rate Limiting in API Routes with Express and Next.js")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
2m read time • Jun 24, 2024  
### Implementing Rate Limiting in API Routes with Express and Next.js  
Implementing rate limiting is essential for controlling the number of API requests users can make within a set timeframe, protecting the service from abuse and ensuring its availability and performance. The post explains the setup using the \`express-rate-limit\` middleware in a Next.js API route. This involves configuring parameters like \`windowMs\` for the time window and \`max\` for the maximum requests allowed. It is a practical method to enhance security and efficiency by preventing brute force attacks and managing server load effectively.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/e477ebc961d6c538f684d5bb2cfb8ea0?_a=AQAEuiZ)  
95  
2
13. 13  
[](/posts/structured-logging-for-next-js-e0mxhdcpm "Structured logging for Next.js")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
3m read time • Jun 24, 2024  
### Structured logging for Next.js  
This post discusses implementing structured logging in Next.js to improve error tracking and user interaction insights. It introduces two solutions: next-logger for automatic JSON formatting of logs, easily integrated but limited to specific server environments; and pino, a highly customizable and high-performance logging library for Node.js, suitable for both development and production environments. The post provides steps for integrating pino with Next.js and highlights the benefits of JSON logging for both frontend and backend applications.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/e6ae5d4459e06af6f15375eb08069357?_a=AQAEuiZ)  
91  
2
14. 14  
[](/posts/vercel-puppeteer-mgsrinmb2 "Vercel + Puppeteer")  
[![community's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)](/tags/[tag]/best-of/[year]/[month])  
5m read time • Jun 11, 2024  
### Vercel + Puppeteer  
Learn how to use Puppeteer with Vercel to generate PDFs of websites. Discover best practices for setting up Puppeteer for Vercel and deploying your Puppeteer code on Vercel.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/c060ef782670d6236386a3ba8bcf4c6c?_a=AQAEuiZ)  
84  
5

[See all Next.js archives](/tags/nextjs/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/nextjs/best-of/2024/06#page","url":"https://daily.dev/tags/nextjs/best-of/2024/06","name":"Best Next.js Posts — June 2024","description":"The most upvoted Next.js posts from June 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/nextjs/best-of/2024/06#items","numberOfItems":14,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/get-the-best-performance-on-your-next-js-app-fx7t4hrba","name":"Get the Best Performance on Your Next.js App"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/things-you-don-t-know-about-next-js-1oeqpqzuh","name":"Things You Don’t Know About Next.js"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/zustand-in-next-js-14-with-ts--0neisn4k4","name":"Zustand in Next.js 14 (with ts)"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/building-an-e-commerce-store-with-nextjs-ttk9bkoaw","name":"Building An E-Commerce Store With NextJS"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/build-a-landing-page-with-ai-and-next-js-fdawnrtl4","name":"Build a Landing Page with AI and Next.js"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/mastering-shadcn-ui-components-y2dtky2bq","name":"Mastering Shadcn UI Components"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/when-your-serverless-computing-bill-goes-parabolic--1fwwbssk3","name":"when your serverless computing bill goes parabolic..."},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/next-js-and-next-auth-v5-guide-to-social-logins-oauth--gupp1hbuo","name":"Next.js and Next-Auth V5: Guide to Social Logins(OAuth)"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/handling-file-uploads-in-next-js-using-uploadthing-jj7o72qqm","name":"Handling file uploads in Next.js using UploadThing"},{"@type":"ListItem","position":10,"url":"https://daily.dev/posts/how-to-build-a-to-do-list-app-with-an-embedded-ai-copilot-next-js-gpt4-copilotkit--nsdsfr7l6","name":"How to build: a To-Do list app with an embedded AI copilot (Next.js, GPT4, \u0026 CopilotKit)"},{"@type":"ListItem","position":11,"url":"https://daily.dev/posts/next-js-server-actions-with-next-safe-action-obd0w6yb6","name":"Next.js Server Actions with next-safe-action"},{"@type":"ListItem","position":12,"url":"https://daily.dev/posts/implementing-rate-limiting-in-api-routes-with-express-and-next-js-8wo6bm6l2","name":"Implementing Rate Limiting in API Routes with Express and Next.js"},{"@type":"ListItem","position":13,"url":"https://daily.dev/posts/structured-logging-for-next-js-e0mxhdcpm","name":"Structured logging for Next.js"},{"@type":"ListItem","position":14,"url":"https://daily.dev/posts/vercel-puppeteer-mgsrinmb2","name":"Vercel + Puppeteer"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"Next.js","item":"https://daily.dev/tags/nextjs"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/nextjs/best-of"},{"@type":"ListItem","position":5,"name":"June 2024"}]}]}
```

