Next.js 13.2 introduces major improvements to the App Router in preparation for stability, including SEO support, Route Handlers, MDX for Server Components, Type-Safe Links, and more.
Next.js 13.2 includes major improvements to the App Router ( app ) in preparation for stability:
Next.js has been designed from the beginning to enable optimization for search engines .
Serving pre-rendered HTML content not only helps improve indexing for search engines but also improves the performance of your application. While Next.js has provided a simple API for modifying metadata in your application ( next/head ) for many versions, we wanted to redesign and enhance how you optimize for search engines with the App Router ( app ).
The new Metadata API allows you to define metadata (e.g. meta and link tags inside your HTML head element) with an explicit metadata configuration in any layout or page that is a…
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
MDX is a superset of markdown that lets you write JSX directly in your markdown files. It is a powerful way to add dynamic interactivity and embed React components within your content. With 13.2, you can now use MDX entirely with React Server Components – meaning less client-side JavaScript for faster page loads, all while retaining the powerful capabilities of React for templating dynamic UI. You can sprinkle interactivity into your MDX content
General
Next.js 13.2 includes major improvements to the App Router (app) in preparation for stability:
How It Works
Next.js has been designed from the beginning to enable optimization for search engines. Serving pre-rendered HTML content not only helps improve indexing for search engines but also improves the performance of your application. While Next.js has provided a simple API for modifying metadata in your application (next/head) for many versions, we wanted to redesign and enhance how you optimize for search engines with the App Router (app). The new Met
Benefits / Advantages
One of the missing pieces for the original beta release of the App Router (app) was API Routes, which exist in the pages/api directory. We wanted to take this opportunity to create a new, more modern version of API Routes that were deeply integrated into the new routing system for app. Route Handlers allow you to create custom request handlers for a given route using the Web Request and Response APIs. export async function GET(request: Request) {
General
As part of enabling MDX for Server Components, we've also rewritten the MDX parser in Rust to improve performance. This is a significant improvement over the previous JavaScript-based parser, which saw noticable slowdowns when processing a large number of MDX files. You can opt-into using the Rust parser in next.config.js. For example, with @next/mdx: /** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true