nextjs

Enhancing NextJS Projects with Mantine UI: A Seamless Experience in TypeScript

Enhancing NextJS Projects with Mantine UI: A Seamless Experience in TypeScript

For the past few years, my journey with the Mantine UI library on various NextJS projects in TypeScript has been nothing short of transformative. The decision to adopt this library was driven by its remarkable ease of use and the exceptional quality of its documentation, which is both well-crafted and meticulously organized. The beauty of Mantine UI lies in its ability to streamline the development process. Within minutes of installation, I found myself immersed in a world where creating captivating interfaces and functional components became effortless. The intuitive design of the library, coupled with its comprehensive documentation, allows developers to…
Read More
Magic of Next.js: Why It’s a Game-Changer for Developers

Magic of Next.js: Why It’s a Game-Changer for Developers

The Power of Next.js: Why You Should Care About Server-Side Rendering (SSR) If you’re a React developer, chances are you’ve heard about Next.js. It’s the framework that’s all the rage for building fast, scalable and SEO-friendly web applications. Picture this: you’re building a website and you want it to load incredibly quickly but also look beautiful. You also want search engines like Google to easily find your content so that you rank higher in search results. The issue is, traditional client-side rendering (the way most React apps work) can sometimes feel slow and is not always ideal for SEO. What…
Read More
What’s New in Next.js 15: Key Updates for Developers

What’s New in Next.js 15: Key Updates for Developers

Next.js 15 just became stable which means we can now use it in production without worrying too much about things not working as expected. If you're on the fence about updating, Next.js 15 brings some major improvements that enhance performance, simplify development workflows, and ensure better compatibility with modern tools like React 19, which is planning on being released soon! Here’s a breakdown of some of the most important changes to take a look at. React 19 Support We’ve all been waiting for React 19 to launch and so has Vercel. With Next.js’s newest release, they ensured it would integrate…
Read More
Dockerizing a Next.js Application using a Standalone Build

Dockerizing a Next.js Application using a Standalone Build

Introduction Docker has gained popularity in recent years for enabling applications to be placed inside containers. These containers can be deployed to any environment and will work the same way in all of them, providing a uniform behavior regardless of the platform where the application runs. These containers use images, which are a copy or compressed snapshot of the application. By placing them within a container, they are displayed exactly as they are. This is one of those technologies that some were desperate for, while others don't realize they need it until they hear about it. For its part, Next.js…
Read More
6 steps to deploy your React Next.js app with Github pages

6 steps to deploy your React Next.js app with Github pages

Deploying a Next.js app to GitHub Pages can be a bit tricky due to the static nature of GitHub Pages and the dynamic features of Next.js. In this article, I'll walk you through the steps to successfully deploy do it. Prerequisites A GitHub account Node.js and npm installed on your machine A Next.js project ready to deploy Step 1: Install gh-pages npm install gh-pages --save-dev Step 2: Update next.config.mjs Next, you need to update your next.config.js (or next.config.mjs) file to handle the base path and asset prefix correctly. const isProd = process.env.NODE_ENV === 'production'; const nextConfig = { reactStrictMode: true,…
Read More
A practical Guide – Migrating to Next.js App Router

A practical Guide – Migrating to Next.js App Router

With the release of the Next.js App Router, many developers are eager to migrate their existing projects. In this post, I’ll share my experience migrating a project to the Next.js App Router, including key challenges, changes, and how you can make the process smoother. It's an incremental approach, you can use the page router and app router simultaneously. Why Migrate to the Next.js App Router? The App Router introduces several advantages: Improved Routing: Cleaner file-system-based routing. Server-Side Rendering (SSR) Enhancements: More efficient handling of server-side data. Meta Handling: Simplified SEO management. Improved Performance: Built-in optimizations for various components. By migrating,…
Read More
‘next build’ not showing uploaded file : Next.js Image

‘next build’ not showing uploaded file : Next.js Image

Rendering Newly Uploaded Files in Next.js on 'next build'In a typical Next.js application, one of the common issues developers face is rendering newly uploaded files after running next build. The default behavior of Next.js during build time is that it bundles static assets and expects them to be available at that point. However, newly uploaded files post-build, such as user-uploaded images, are not automatically detected or rendered. This blog will walk you through a solution using a custom Node.js server to dynamically serve newly uploaded files without having to rebuild the Next.js app every time a new file is added.…
Read More
How to Use Shadow DOM and Honeypots to Deter Crawlers

How to Use Shadow DOM and Honeypots to Deter Crawlers

This is a short introduction and demonstration on how we can increase security on forms, especially against crawling, it's noticeable that it's most likely overkill for most applications but very interesting for those who want to understand a bit more about such practices as and how it's possible to undermine them. Disclaimer: This post was inspired by Felippe Regazio, on a late-night coding stream, make sure to give him a follow. Huge thanks. Also, I'm not a senior dev, so please feel free to double-check any information you believe I could've misstated so that we can correct/improve it together. Next.js…
Read More
4 Best Rate Limiting Solutions for Next.js Apps (2024)

4 Best Rate Limiting Solutions for Next.js Apps (2024)

When implementing rate limiting in a Next.js application, there are several effective solutions available. Let's take a comprehensive overview of the best rate limiting options for Next.js: This middleware for Express applications is widely used for managing how many requests a client can make in a given time frame. Integration: You can use it in your Next.js API routes by importing the package and applying it as middleware. Example: import rateLimit from 'express-rate-limit'; const apiLimiter = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100, // limit each IP to 100 requests per windowMs message: 'Too many…
Read More
Home Service Full-stack app using NestJs, Next.js, React Query TailwindCSS & Prisma

Home Service Full-stack app using NestJs, Next.js, React Query TailwindCSS & Prisma

Home-Service app built with NestJS, Next.js 14, Tailwind CSS, Prisma, and NextAuth. Features include user sign-up, sign-in, browsing services, adding and deleting services, filtering options, and booking appointments. Open to contributions during development. Getting Started Clone the repository: git clone https://github.com/saidMounaim/home-service.gitInstall dependencies: For the frontend: cd frontend npm install Enter fullscreen mode Exit fullscreen mode For the backend: cd backend npm install Enter fullscreen mode Exit fullscreen mode Create a .env file for each folder: Frontend (.env): API_URL="" Enter fullscreen mode Exit fullscreen mode Backend (.env): DATABASE_URL="" CLD_CLOUD_NAME="" CLD_API_KEY="" CLD_API_SECRET="" Enter fullscreen mode Exit fullscreen mode Start the development servers:…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.