@netlify/vite-plugin
Version:
Vite plugin with a local emulation of the Netlify environment
13 lines (10 loc) • 410 B
TypeScript
import { Features } from '@netlify/dev';
interface NetlifyPluginOptions extends Features {
/**
* Attach a Vite middleware that intercepts requests and handles them in the
* same way as the Netlify production environment (default: true).
*/
middleware?: boolean;
}
declare function netlify(options?: NetlifyPluginOptions): any;
export { type NetlifyPluginOptions, netlify as default };