@capri-js/vercel
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Capri 🍋 SSR on Vercel

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

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

// 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.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @capri-js/vercel

Weekly Downloads

15

Version

1.1.3

License

MIT

Unpacked Size

6.81 kB

Total Files

10

Last publish

Collaborators

  • fgnass