Skip to content

A Next.js-based reverse proxy deployed on Vercel. It uses the next/server API and Vercel KV for path rewrites, allowing teams to manage custom routing by adding JSON configuration files to the manual-patterns directory.

Notifications You must be signed in to change notification settings

MartinLupa/nextjs-reverse-proxy

Repository files navigation

Reverse Proxy

This is a reverse proxy that allows you to rewrite paths to different destinations.

It's deployed on Vercel and uses the next/server API to handle the requests.

The rewrites are stored in Vercel KV for easy management.

Teams can manage their rewrites by adding a file *.json file to the manual-patterns directory.

The file should be formatted as a JSON array of objects with the following properties:

  • path: The path to rewrite.
  • destination: The destination to rewrite to.

For example:

[
  {
    "path": "/example-path",
    "destination": "https://example-destination.com"
  }
]

The rewrites will be automatically updated when the app is deployed.

About

A Next.js-based reverse proxy deployed on Vercel. It uses the next/server API and Vercel KV for path rewrites, allowing teams to manage custom routing by adding JSON configuration files to the manual-patterns directory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published