Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 757 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 757 Bytes

adapter-vercel

Adapter for Svelte apps that creates a Vercel app, using a function for dynamic server rendering.

Usage

Add "@sveltejs/adapter-vercel": "next" to the devDependencies in your package.json and run npm install.

Then in your svelte.config.js:

import vercel from '@sveltejs/adapter-vercel';

export default {
	kit: {
		...
		adapter: vercel(options)
	}
};

Options

You can pass an options argument, if necessary, with the following:

  • external — an array of dependencies that esbuild should treat as external

Changelog

The Changelog for this package is available on GitHub.