# @capri-js/vercel

> Use `@capri-js/vercel` to render your static pages using either

Latest version **1.1.3** (published 2023-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @capri-js/vercel
pnpm add @capri-js/vercel
yarn add @capri-js/vercel
bun add @capri-js/vercel
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-03-01 |
| First published | 2022-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 213 |
| Author | Felix Gnass |
| Maintainers | fgnass |

## Links

- npm: https://www.npmjs.com/package/@capri-js/vercel
- Repository: https://github.com/capri-js/capri
- Homepage: https://github.com/capri-js/capri#readme
- Issues: https://github.com/capri-js/capri/issues
- npm.io page: https://npm.io/package/@capri-js/vercel

## Dependencies (1)

- [capri](https://npm.io/package/capri.md) ^5.2.3

## Recent versions

- 1.1.3 (latest) — 2023-03-01
- 1.1.0-next.1 (next) — 2023-01-07
- 1.1.2 — 2023-01-10
- 1.1.1 — 2023-01-09
- 1.1.0 — 2023-01-08
- 1.0.2 — 2022-12-19
- 1.0.1 — 2022-12-10
- 1.0.0 — 2022-07-16
- 1.0.0-next.15 — 2022-07-15
- 1.0.0-next.14 — 2022-07-15
- 1.0.0-next.13 — 2022-07-15
- 1.0.0-next.12 — 2022-07-10
- 1.0.0-next.11 — 2022-07-10
- 1.0.0-next.10 — 2022-07-08
- 1.0.0-next.9 — 2022-07-08
- … 8 more at https://npm.io/package/@capri-js/vercel/versions

## README

# Capri 🍋 SSR on Vercel

Use `@capri-js/vercel` to render your static pages using either

- a [serverless function](https://vercel.com/docs/concepts/functions/serverless-functions)
- a [prerender function](https://vercel.com/docs/concepts/next.js/incremental-static-regeneration)
- or an [edge function](https://vercel.com/docs/build-output-api/v3#vercel-primitives/edge-functions)

_NOTE:_ This is only needed for SSR. For static sites that are prerendered upon build,
leave the target set to `undefined`.

https://vercel.com/docs/build-output-api/v3

## Usage

```ts
// vite.config.ts
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import capri from "@capri-js/react";
import vercel from "@capri-js/vercel";

export default defineConfig({
  plugins: [
    react(),
    capri({
      target: vercel({
        // options (see below)
      }),
    }),
  ],
});
```

## Options

### `edge`

Whether to create an edge function (default `false`).

### `isg`

Settings for [Incremental Static Rendering](https://vercel.com/docs/build-output-api/v3#vercel-primitives/prerender-functions/configuration).

```ts
{
  expiration: number | false;
  bypassToken?: string;
}
```

---
_Source: https://npm.io/package/@capri-js/vercel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
