Unverified Commit 7181d46f authored by Delba de Oliveira's avatar Delba de Oliveira Committed by GitHub

docs: Add link to bloom filter example (#60987)

parent 5f67de67
...@@ -252,15 +252,17 @@ export const config = { ...@@ -252,15 +252,17 @@ export const config = {
See the [Middleware](/docs/app/building-your-application/routing/middleware) documentation for more information. See the [Middleware](/docs/app/building-your-application/routing/middleware) documentation for more information.
## Managing redirects at scale (Advanced) ## Managing redirects at scale (advanced)
To manage a large number of redirects (1000+), you may consider creating a custom solution using Middleware. This allows you to handle redirects programmatically without having to redeploy your application. To manage a large number of redirects (1000+), you may consider creating a custom solution using Middleware. This allows you to handle redirects programmatically without having to redeploy your application.
When handling a large number of redirects, you should consider: To do this, you'll need to consider:
1. Creating and storing a redirect map. 1. Creating and storing a redirect map.
2. Optimizing data lookup performance. 2. Optimizing data lookup performance.
> **Next.js Example**: See our [Middleware with Bloom filter](https://redirects-bloom-filter.vercel.app/) example for an implementation of the recommendations below.
### 1. Creating and storing a redirect map ### 1. Creating and storing a redirect map
A redirect map is a list of redirects that you can store in a database (usually a key-value store) or JSON file. A redirect map is a list of redirects that you can store in a database (usually a key-value store) or JSON file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment