Back to Templates

Filtering Query Parameters
The example shows how to filter query parameters from the URL using Edge Middleware.
To see how it works, check the middleware function in middleware.ts:
Demo
https://edge-functions-query-params-filter.vercel.app
How to Use
You can choose from one of the following two methods to use this repository:
One-Click Deploy
Deploy the example using Vercel:
Clone and Deploy
Execute create-next-app with pnpm to bootstrap the example:
Next, run Next.js in development mode:
Before URL: http://localhost:3000?a=b&allowed=test
After URL: http://localhost:3000?allowed=test
Deploy it to the cloud with Vercel (Documentation).
