Redirection.io Next.js Examples Apps
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-examples
You can read more about the middleware in the Vercel Middleware Integration Guide.
1. Storyblok Example
A Next.js app with app router, demonstrating the integration of:
- Next.js app router and Draft mode
- Storyblok
- Redirection.io with Vercel middleware
2. Auth0 Example
A Next.js app with app router, showcasing the setup of:
- Next.js with app router
- Auth0
- Redirection.io with Vercel middleware
3. Next-intl Example
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
Getting Started
Each example project has its own README with specific instructions. Please refer to the individual README files for detailed setup and usage information.
Common Setup Steps
- 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
Redirection.io Setup
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
