<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Next.js on Commentary of Takao</title><link>https://takao.blog/zh-tw/tags/next.js/</link><description>Recent content in Next.js on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh-tw/tags/next.js/index.xml" rel="self" type="application/rss+xml"/><item><title>2026 靜態站點產生器：Astro、Hugo 與 11ty</title><link>https://takao.blog/zh-tw/web/static-site-generators-2026-comparison/</link><pubDate>Tue, 05 May 2026 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/static-site-generators-2026-comparison/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/static-site-generators-2026-comparison-zh-tw.png" alt="Featured image of post 2026 靜態站點產生器：Astro、Hugo 與 11ty" /&gt;&lt;h2 id="2026-靜態站點產生器astrohugo-與-11ty"&gt;2026 靜態站點產生器：Astro、Hugo 與 11ty
&lt;/h2&gt;&lt;p&gt;2026 年的靜態站點生成器格局比以往任何時候都更加多樣化。開發人員可以在基於 Go 的速度極快的 &lt;strong&gt;Hugo&lt;/strong&gt;、島嶼架構先驅 &lt;strong&gt;Astro&lt;/strong&gt; 和極簡、靈活的 &lt;strong&gt;11ty&lt;/strong&gt; (Eleventy) 之間進行選擇。每個工具都在不同的場景中表現出色——了解它們的權衡對於為您的專案選擇正確的工具至關重要。&lt;/p&gt;</description></item><item><title>PPR（部分預先渲染）：合併靜態和動態路由</title><link>https://takao.blog/zh-tw/web/nextjs-partial-prerendering-ppr/</link><pubDate>Tue, 10 Feb 2026 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-partial-prerendering-ppr/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-partial-prerendering-ppr-zh-tw.png" alt="Featured image of post PPR（部分預先渲染）：合併靜態和動態路由" /&gt;&lt;h2 id="問題靜態與動態的權衡"&gt;問題：靜態與動態的權衡
&lt;/h2&gt;&lt;p&gt;傳統上，Next.js 開發人員面臨著一個二元選擇：&lt;strong&gt;靜態生成&lt;/strong&gt;（快速但陳舊）或&lt;strong&gt;伺服器端渲染&lt;/strong&gt;（新鮮但較慢）。部分預先渲染（PPR）透過將兩種方法結合在一個頁面中消除了這種權衡——靜態 HTML shell 立即串流傳輸，而動態內容透過 React Suspense 載​​入。&lt;/p&gt;</description></item><item><title>Next.js 15 Stable Release: 最佳 Practices in Production</title><link>https://takao.blog/zh-tw/web/nextjs-15-stable-features-overview/</link><pubDate>Sun, 05 Oct 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-15-stable-features-overview/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-15-stable-features-overview-zh-tw.png" alt="Featured image of post Next.js 15 Stable Release: 最佳 Practices in Production" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Next.js 15 ships as a stable release with &lt;strong&gt;React 19 支援&lt;/strong&gt;, a redesigned caching model, and major API improvements for async request handling. This version defaults to &lt;strong&gt;no caching&lt;/strong&gt; for fetch requests and GET Route handlers, simplifying behavior predictability. It also introduces &lt;code&gt;async&lt;/code&gt; variants for &lt;code&gt;cookies()&lt;/code&gt;, &lt;code&gt;headers()&lt;/code&gt;, and &lt;code&gt;params()&lt;/code&gt;, aligning with React 19&amp;rsquo;s async rendering paradigm. This article covers every breaking change and best practice for production adoption.&lt;/p&gt;</description></item><item><title>揭秘 Next.js 應用路由器快取機制</title><link>https://takao.blog/zh-tw/web/nextjs-app-router-caching/</link><pubDate>Thu, 10 Apr 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-app-router-caching/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-app-router-caching-zh-tw.png" alt="Featured image of post 揭秘 Next.js 應用路由器快取機制" /&gt;&lt;h2 id="介紹"&gt;介紹
&lt;/h2&gt;&lt;p&gt;Next.js App Router 具有強大的快取架構，旨在優化載入速度並減少後端 API 開銷。&lt;/p&gt;
&lt;p&gt;然而，由於 Next.js 整合了多個快取層，開發人員經常遇到除錯問題。常見問題包括頁面顯示陳舊資料或 API 觸發過於頻繁。&lt;/p&gt;</description></item><item><title>Next.js 國際化：路由與內容策略</title><link>https://takao.blog/zh-tw/web/nextjs-i18n-routing/</link><pubDate>Tue, 08 Oct 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-i18n-routing/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-i18n-routing-zh-tw.png" alt="Featured image of post Next.js 國際化：路由與內容策略" /&gt;&lt;h2 id="介紹"&gt;介紹
&lt;/h2&gt;&lt;p&gt;國際化是現代 Web 應用程式的基本要求。 Next.js 已將其 i18n 支援從 Pages Router 中的整合路由系統發展為 App Router 中靈活的基於中間件的方法。本文涵蓋多語言 Next.js 應用程式的路由策略、區域設定偵測、內容管理和 SEO 最佳化。&lt;/p&gt;</description></item><item><title>Next.js 中間件：路由、驗證和邊緣運算</title><link>https://takao.blog/zh-tw/web/nextjs-middleware/</link><pubDate>Tue, 18 Jun 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-middleware/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-middleware-zh-tw.png" alt="Featured image of post Next.js 中間件：路由、驗證和邊緣運算" /&gt;&lt;h2 id="介紹"&gt;介紹
&lt;/h2&gt;&lt;p&gt;Next.js 中間件在每個請求之前執行，在邊緣或無伺服器區域運行。專案根目錄下的單一 &lt;code&gt;middleware.ts&lt;/code&gt; 檔案會攔截傳入要求，並且可以在請求到達匹配路由之前重定向、重寫、操作標頭或執行驗證檢查。&lt;/p&gt;</description></item><item><title>Next.js Image 優化: From 設定 to 進階 Patterns</title><link>https://takao.blog/zh-tw/web/nextjs-image-optimization/</link><pubDate>Tue, 26 Mar 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/nextjs-image-optimization/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-image-optimization-zh-tw.png" alt="Featured image of post Next.js Image 優化: From 設定 to 進階 Patterns" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Images account for over 50% of total webpage bytes on average, making optimization essential for performance. Next.js provides a comprehensive image optimization pipeline through the &lt;code&gt;next/image&lt;/code&gt; component and its built-in Image Optimization API. This article covers setup, configuration, and advanced patterns with a focus on Core Web Vitals impact.&lt;/p&gt;
&lt;h2 id="the-nextimage-component"&gt;The next/image Component
&lt;/h2&gt;&lt;p&gt;The &lt;code&gt;next/image&lt;/code&gt; component extends the HTML &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; element with automatic optimization features: lazy loading, responsive srcset generation, width and height enforcement to prevent Cumulative Layout Shift, blur-up placeholders, and automatic format negotiation.&lt;/p&gt;</description></item><item><title>React 伺服器元件：Web 渲染的未來</title><link>https://takao.blog/zh-tw/web/react-server-components/</link><pubDate>Mon, 08 Jan 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/react-server-components/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/react-server-components-zh-tw.png" alt="Featured image of post React 伺服器元件：Web 渲染的未來" /&gt;&lt;p&gt;React 服务器组件 (RSC) 代表了 React 应用程序渲染方式的范式转变。组件专门在服务器上运行，向客户端发送零 JavaScript。這與伺服器端渲染（SSR）不同，後者在伺服器上渲染元件，但仍然將它們的所有 JavaScript 發送到客戶端進行補水。 RSC 產生一種特殊的序列化格式——RSC 有效負載——客戶端上的 React 協調器使​​用它來重建元件樹，而不執行元件程式碼。&lt;/p&gt;</description></item></channel></rss>