This repository contains example applications demonstrating the integration of Redirection.io with Next.js, showcasing various setups and features.
These examples use the official Redirection.io Vercel middleware. To add it to your own project, install it using npm or yarn:
yarn add @redirectionio/nextjs-examplesYou can read more about the middleware in the Vercel Middleware Integration Guide.
A Next.js app with app router, demonstrating the integration of:
- Next.js app router and Draft mode
- Storyblok
- Redirection.io with Vercel middleware
A Next.js app with app router, showcasing the setup of:
- Next.js with app router
- Auth0
- Redirection.io with Vercel middleware
A Next.js app with app router, demonstrating the integration of:
- Next.js with app router
- Next-intl for internationalization
- Redirection.io with Vercel middleware
Each example project has its own README with specific instructions. Please refer to the individual README files for detailed setup and usage information.
- Clone this repository
- Navigate to the desired example directory
- Create a
.envfile with the required environment variables (see individual READMEs) - Install dependencies:
yarn install - Run the development server:
yarn dev - Open http://localhost:3000 in your browser
To use Redirection.io in these examples:
- Go to https://redirection.io/
- Create an account
- Create a new project
- Get the API key
- Set the API key in the
.envfile of the respective example project
