nextjs

My Code Chronicles #2: Creating a Dynamic Product Card Component in Next.js using Framer Motion

My Code Chronicles #2: Creating a Dynamic Product Card Component in Next.js using Framer Motion

Hover effects are more than just eye candy—they are essential for creating an engaging user experience on modern websites. When implemented thoughtfully, hover effects can provide subtle visual feedback, improve usability, and guide user interaction intuitively. For e-commerce websites, like the one I was building for Glamour & Gourmandise, the product card is a critical component. It needs to be visually appealing, informative, and highly interactive. To achieve this, I implemented a sophisticated hover effect that reveals additional product details in a sleek and seamless way. Code "use client"; import { motion } from "framer-motion" // Imports... export default function…
Read More
SWR make it easy!!!

SWR make it easy!!!

Technologies are evolving so rapidly, especially when it comes to JavaScript. React.js and Next.js are powerful frontend frameworks that are highly popular. They provide several hooks to make developers' jobs easier. SWR is a powerful React hook for data fetching. The name SWR stands for Stale-While-Revalidate. It uses an HTTP cache invalidation strategy as per HTTP RFC 5861. SWR is created by the founding team of Next.js. Its name simply means: stale stands for cached data previously fetched from an API, while refers to the transition period, and revalidate means verifying and updating the cached data to ensure it is…
Read More
Why You Need a Portfolio (& How to Make One ASAP)

Why You Need a Portfolio (& How to Make One ASAP)

In today’s world, having a portfolio is not just important—it’s a must. Whether you’re a developer, designer, or creator, a portfolio shows who you are and what you can do. It’s like your chance to stand out. But let’s be real. Making a portfolio can feel hard sometimes. Where do you even start? How do you make it look good? Is it good enough? That’s where Portify comes in. It’s a simple tool to help you create a great portfolio in minutes. Portify has officially launched on Product Hunt! Check it out and see how easy it is to build…
Read More
From Gatsby to Next.js: Why We Migrated Our Blog and How You Can Too

From Gatsby to Next.js: Why We Migrated Our Blog and How You Can Too

Why We Migrated Our Blog From Gatsby to Next.js and How You Can Too When we first launched the Flotiq Blog, Gatsby seemed like the perfect choice. Its static site generation and focus on performance aligned with our vision for a fast, reliable platform. But as Gatsby’s limitations became more apparent—particularly its declining relevance as a technology and the challenges we faced with content updates—we realized it was time to reevaluate our approach. This is the story of how we transitioned from Gatsby to Next.js, the issues that prompted the move, and why this migration transformed our blog for the…
Read More
Set Up a Laravel Backend and Next.js Frontend Development Environment with Docker within 5 minutes

Set Up a Laravel Backend and Next.js Frontend Development Environment with Docker within 5 minutes

github This guide walks you through creating a Laravel backend and a Next.js frontend, all within a Dockerized environment. You can have everything up and running in just a few minutes. Prerequisites Docker and Docker Compose installed on your system Basic knowledge of Laravel and Next.js - Basic knowledge of command-line usage 1. Clone the Repository git clone https://github.com/softjapan/laravel-nextjs-dev-environment.git Enter fullscreen mode Exit fullscreen mode 2. Create the Laravel Backend By default, this setup uses MySQL. We will skip running migrations at this point and do them later. Other options use default settings. cd laravel-nextjs-dev-environment docker run --rm -it -v…
Read More
Building a webhook tester from scratch

Building a webhook tester from scratch

Every now and then I find myself in need of a quick way to debug and test webhooks without the hassle of setting up an entire server. Whether it's validating a third-party API integration, troubleshooting event payloads, or simply experimenting with custom webhook workflows. While there are plenty of solutions out there designed to test webhooks, they often come with significant limitations. Many of these tools are not self-hostable (or are difficult to install), they have stringent request limits (unless you’re willing to pay), they feel too complex, and they often store data on their servers, raising concerns about privacy…
Read More
Next build error collecting page data; + Chakra UI

Next build error collecting page data; + Chakra UI

Hi there,This post is about an error I faced recently in a Next.js project.I got the following error when I ran the next build command. Collecting page data ...TypeError: d is not a function Followed by a stack trace which pointed to files in the .next directory. After that came the next helpful output. Build error occurredError: Failed to collect page data for /featured/[slug] On inspection of the files in the [slug] dynamic path there was only one difference between the previous commit that worked and the current commit that was failing; the use of the Chakra UI's Link component…
Read More
Introduction to Next.js 15: What’s New and the improvements!

Introduction to Next.js 15: What’s New and the improvements!

Introduction Next.js 15 has introduced a range of exciting features and improvements that enhance both performance and developer experience. Here’s a detailed overview of what's new! Seamless Upgrades with @next/codemod CLI The enhanced codemod CLI simplifies upgrading to the latest Next.js and React versions. It automates code transformations, ensuring a smooth transition to new APIs and features. npx @next/codemod@canary upgrade latest Enter fullscreen mode Exit fullscreen mode Performance Enhancements Next.js 15 focuses heavily on improving the speed and efficiency of applications: Turbopack Boost: Next.js 15's integration with Turbopack accelerates development server startup by up to 53%, providing faster feedback loops.…
Read More
Next.js at refactor or extinct situation.

Next.js at refactor or extinct situation.

Next.js become a hype of the day (or year), but it's slowly suffocating under the weight of technical debt. There are many big enough pain points with Next.js: Slow and painful dev mode, if you changed something and need to check more than 1 route, you need to wait till route compiled. Next.js server also uses few gigabytes of RAM. Turbopack complaining about perfectly working TS code, and struggle to understand :global in CSS modules, still not production ready. Whole workflow is intended to be used mostly with server components, but in real world applications big chunks of applications use…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.