函式
getInitialProps
使用 getInitialProps 為你的 React 元件在伺服器端取得動態資料。
getServerSideProps
API `getServerSideProps` 參考文件。了解如何使用 Next.js 在每個請求中獲取資料。
getStaticPaths
API `getStaticPaths` 參考文件。了解如何使用 `getStaticPaths` 來獲取資料並生成靜態頁面。
getStaticProps
API `getStaticProps` 参考文档。了解如何使用 `getStaticProps` 在 Next.js 中生成静态页面。
NextRequest 與 NextResponse
了解用於中介軟體 (Middleware) 和邊緣 API 路由 (Edge API Routes) 的伺服器專用輔助工具。
useAmp
在頁面中啟用 AMP,並透過 AMP 配置控制 Next.js 將 AMP 加入頁面的方式。
useReportWebVitals
useReportWebVitals
useRouter
深入了解 Next.js 路由器的 API,並透過 useRouter 鉤子在頁面中存取路由器實例。