open-index/open-npm huggingface dataset:
npm package: @iheartjane/vercel-menu-proxy
Description: Jane Menu Vercel Proxy Handler
Latest version: 1.0.5

# @iheartjane/vercel-menu-proxy

Vercel proxy handler for integrating with Jane Premium.

## Installation

```bash
npm install @iheartjane/vercel-menu-proxy
```

## Usage

Create a proxy file in your Vercel project:

* For Next.js projects, this is the [proxy.ts](https://nextjs.org/docs/app/getting-started/proxy) file
* For Other projects, this is the [middleware.ts](https://vercel.com/docs/routing-middleware) file

**NOTE:** Set the MENU_PATH_HERE to be the path the menu should load on


```typescript
import { janeMenuProxy } from '@iheartjane/vercel-menu-proxy';

export const config = {
  matcher: ['MENU_PATH_HERE/:path*'],
};

export default janeMenuProxy({
  menuToken: process.env.JANE_MENU_PROXY_TOKEN,
});
```

## Configuration Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `menuToken` | `string` | - | **Required.** Authentication token for the Jane backend |
| `timeout` | `number` | `10000` | Request timeout in milliseconds |
| `upstreamUrl` | `string` | - |  Upstream url for the reverse proxy |

## Environment Variables

| Variable | Description |
|----------|-------------|
| `JANE_MENU_PROXY_TOKEN` | Authentication token for the menu backend |


NOTE: Please reach out to your partner success rep to get your Jane Authentication token.