惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
宝玉的分享
宝玉的分享
量子位
V
Visual Studio Blog
罗磊的独立博客
Vercel News
Vercel News
B
Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
GbyAI
GbyAI
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

Netlify Changelog

Gemini 3.5 Flash now available in Agent Runners 4 Nuxt CVEs: what Netlify users need to know Gemini 3.5 Flash now available in AI Gateway Agent Runners workflow improvements Next.js & React security release (May 2026): what to know Block project transfers out of your team Gemini 3.1 Flash-Lite now available in AI Gateway OpenAI GPT-5.5 Instant now available in AI Gateway New `netlify logs` CLI command Deploy to Netlify with Stripe Projects Netlify Database is now generally available OpenAI GPT-5.5 and GPT-5.5 Pro in AI Gateway & Agent Runners Rename an agent run GPT Image 2 now available in AI Gateway New frontend-design skill for Agent Runners Claude Opus 4.7 now available in AI Gateway and Agent Runners Pricing updates for Credit-based plans New sorting and filter controls on the Members page Netlify Database GA coming soon, no new databases for now Deploy logs streaming is now faster Netlify CLI adds prompt-based creation and anonymous deploys Deploy from Codex with the Netlify Plugin Hydrogen with React Router 7 now supported on Netlify Monitor credit usage by day Invoices for Enterprise Available on the Billing Page AI app development on production infrastructure with Netlify Introducing Prompt Templates OpenAI GPT-5.4 Nano and GPT-5.4 Mini in AI Gateway Change your pricing plan Internal Builder Role & Project Access Controls
Next.js Advanced Middleware: On the better runtime by Net...
Nahrin Jalal · 2022-08-24 · via Netlify Changelog

We are excited to announce a new, better runtime for Next.js — available on Netlify today! Alongside this runtime environment, developers can also download a new package @netlify/next which extends what’s possible with Next.js Middleware.

Next.js Runtime by Netlify - The better runtime for Next.js | Product Hunt

Next.js Advanced Middleware, available in the new @netlify/next package, supports HTML rewrites, page data transforms, and gives you full access to the response body. This allows you to modify content on the fly, at the edge, without unnecessary client-side JavaScript or complicated SSR strategies.

You can read about the new runtime in Netlify’s Next.js documentation and follow a step-by-step tutorial to get started with Next.js Advanced Middleware.

What’s new with Next.js Runtime

Netlify’s new Next.js Runtime environment lets you run Next.js on a more modern edge network that gives you more power and flexibility than what’s available with other platforms.

Additionally, the new Next.js Runtime is perfectly form fitted to run Next.js and all of its core features with zero configuration.

image

The power to transform content at the edge

When you use the @netlify/next package on Netlify’s new Next.js Runtime, you unlock access to modify responses and request headers at the edge. Next.js Advanced Middleware supports HTML rewrites, page data transforms, and gives you full access to the response body.

This means you can achieve personalization use cases like localization and authentication without the trade-offs of SSR or heavy client-side JavaScript.

For example, you could:

  • Show different content to site visitors based on their geolocation
  • Authenticate users to an app without revealing private keys in the request
  • Modify cookies for analytics and reporting

all without needing to manually create and redirect to alternative URLs or run client-side scripts that swap content after a page loads.

Personalization with better performance and less effort

Personalization use cases like localization, internationalization, and custom authentication are possible to achieve with Next.js Middleware out of the box. But, in practice, achieving these use cases requires much more effort and custom code, either server-side or with JavaScript on the page.

What makes Netlify’s Next.js Advanced Middleware unique is that it removes development effort from the implementation in a way that also makes your end product faster and more performant. It’s a better developer experience while delivering an optimal end-user experience.

Next.js Advanced Middleware is only available on Netlify’s Next.js Runtime. And, when you run Next.js on Netlify you also get access to 30+ additional features that are unique to the Netlify platform, such as a GraphQL-powered API mesh for easily connecting new services, granular release management features for locking and prioritizing builds, and advanced serverless capabilities like background functions and scheduled functions.

Do more with Next.js today

Next.js is one of the most popular frameworks for developers, and we’re thrilled to push the developer experience forward, giving you new tools to achieve even more with the framework you know and love.

When you deploy any Next.js project to Netlify, that project will automatically deploy using the new Next.js Runtime. Learn more about the Next.js Runtime environment in the Netlify docs

If you’re ready to try out the new Next.js Advanced Middleware, follow the tutorial to learn how to rewrite HTML and transform page props. The tutorial includes a video, a step-by-step guide, and a live demo site you can play with to understand how it works.