mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
- Share new **Redirecting** docs with /pages - Add equivalent example for API routes in /pages
8 lines
496 B
Plaintext
8 lines
496 B
Plaintext
---
|
|
title: Middleware
|
|
description: Learn how to use Middleware to run code before a request is completed.
|
|
source: app/building-your-application/routing/middleware
|
|
---
|
|
|
|
{/* DO NOT EDIT. The content of this doc is generated from the source above. To edit the content of this page, navigate to the source page in your editor. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
|