函式
getInitialProps
使用 getInitialProps 為您的 React 元件在伺服器端獲取動態資料。
getServerSideProps
API `getServerSideProps` 參考文件。學習如何在 Next.js 中於每個請求時獲取資料。
getStaticPaths
API `getStaticPaths` 參考文檔。了解如何使用 `getStaticPaths` 來獲取資料並生成靜態頁面。
getStaticProps
API `getStaticProps` 參考文件。了解如何使用 `getStaticProps` 在 Next.js 中生成靜態頁面。
NextRequest
NextRequest 的 API 參考文檔。
NextResponse
NextResponse 的 API 參考文檔
useAmp
在頁面中啟用 AMP,並透過 AMP 設定控制 Next.js 將 AMP 加入頁面的方式。
useReportWebVitals
useReportWebVitals 使用說明
useRouter
深入了解 Next.js Router 的 API,並透過 useRouter 鉤子在您的頁面中存取路由實例。
userAgent
userAgent 輔助工具擴展了 Web Request API,提供額外屬性和方法來與請求中的使用者代理 (user agent) 物件互動。