# Incremental Static Regeneration (ISR) with SvelteKit

> Cache and revalidate SvelteKit pages that render Uniform compositions on Vercel.

Source: https://docs.uniform.app/docs/sdk/svelte/incremental-static-regeneration-isr

> **Developer preview:**
>
> This feature is in developer preview and may change unexpectedly. For more information, contact support@uniform.dev.

For Vercel deployments, enable ISR to cache and revalidate pages:

```ts
// src/routes/[...path]/+page.server.ts
import { createVercelIsrConfig } from '@uniformdev/canvas-sveltekit';

export const config = createVercelIsrConfig({
  expiration: 60, // Revalidate every 60 seconds
});
```

Pass the Vercel adapter to the SvelteKit plugin in `vite.config.ts`. Install `@sveltejs/adapter-vercel` first.

```ts
// vite.config.ts
import adapter from '@sveltejs/adapter-vercel';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    sveltekit({
      adapter: adapter(),
    }),
  ],
});
```
