The What, When, Why And How Of Next.js’ New Middleware Feature

Next.js’ recent 12.0 release included a new beta feature: middleware. For a detailed explanation, you can read all about it in Sam’s previous article, “Next.js Wildcard Subdomains”. This article, on the other hand, dives into the overall concept of middleware and how handy it can be in building things. https://smashingmagazine.com/2022/04/next-js-middleware-feature/

Établi 3y | 1 avr. 2022, 13:20:23


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Previewing Content Changes In Your Work With document.designMode

You probably already know that you can use developer tools in your browser to make on-the-spot changes to a webpage — simply click the node in the Inspector and make your edits. But have you tri

21 mars 2025, 14:50:03 | Smashing magazine
Web Components Vs. Framework Components: What’s The Difference?

Some critics question the agnostic nature of Web Components, with some even arguing that they are not real components. Gabriel Shoyomboa explores this topic in-depth, comparing Web Components and fram

17 mars 2025, 15:50:02 | Smashing magazine
How To Prevent WordPress SQL Injection Attacks

Have you thought about the security risks WordPress websites face? Anders Johansson explores why they are frequent hacker targets and shares how WordPress SQL injection attacks work and how to remove

13 mars 2025, 14:20:08 | Smashing magazine
How To Fix Largest Contentful Paint Issues With Subpart Analysis

Struggling with slow Largest Contentful Paint (LCP)? Newly introduced by Google, LCP subparts help you pinpoint where page load delays come from. Now, in the Chrome UX Report, this data provides real

11 mars 2025, 22:40:08 | Smashing magazine
How To Build Confidence In Your UX Work

UX initiatives are often seen as a disruption rather than a means to solving existing problems in an organization. In this post, we’ll explore how you can build trust for your UX work, gain support, a

11 mars 2025, 18:10:09 | Smashing magazine
How To Fix Largest Contentful Issues With Subpart Analysis

Struggling with slow Largest Contentful Paint (LCP)? Newly introduced by Google, LCP subparts help you pinpoint where page load delays come from. Now, in the Chrome UX Report, this data provides real

6 mars 2025, 15:10:04 | Smashing magazine
The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

Modern frameworks are supposed to help speed up development while providing modern tools and a developer-friendly workflow. In reality, Kevin Leary has found that they cause far more problems than the

3 mars 2025, 15:10:18 | Smashing magazine