標籤: App Router
頁次 1/2
Next.js Parallel Routes 平行路由用法:@slot 慣例、分頁群組、條件路由與 Intercepting Routes 的 Modal
Next.js connection 用法:等待實際請求再渲染、Math.random 與 Date、Cache Components 與 io 差異
Next.js Metadata Files 用法:favicon、icon、apple-icon、manifest 與 opengraph-image 檔案慣例
Next.js loading.js 用法:Suspense 載入畫面、串流回應與 prefetch 行為
Next.js default.js 用法:Parallel Routes 重新整理後的 slot 備援內容、notFound 與 Next.js 16 build 錯誤
Next.js after 用法:回應送出後執行 log、cookies 與 headers 限制、waitUntil 與部署支援
Next.js route.js 用法:Route Handlers 寫法、HTTP 方法、params 與 GET 快取
Next.js public 資料夾用法:靜態檔案路徑、Cache-Control 快取、basePath 與 robots.txt 放置位置
Next.js Route Segment Config 用法:page、layout、route 匯出設定與 Next.js 16 現行選項
Next.js page.js 用法:params、searchParams、PageProps 型別與 Client Component 頁面
Next.js not-found.js 用法:notFound() 404 頁面、global-not-found.js 與狀態碼 200 的情況
Next.js forbidden.js 用法:authInterrupts 設定、forbidden() 權限檢查與 403 狀態碼
Next.js layout.js 用法:children、params、根 layout 規則與 LayoutProps 型別
Next.js 動態路由 Dynamic Segments 用法:[slug]、[…slug]、[[…slug]] 與 generateStaticParams
Next.js Link Component 用法:next/link 的 href、replace、scroll、prefetch 與 onNavigate
Next.js instrumentation.js 用法:register() 啟動初始化、onRequestError 錯誤回報與 NEXT_RUNTIME 判斷
Next.js proxy.js 用法:取代 middleware 的 proxy 函式、matcher 設定與 Node.js runtime
Next.js Form Component(next/form)用法:搜尋表單 query string、replace、prefetch 與 Server Action