2.2.3 • Published 5 months ago
@netlify/vite-plugin v2.2.3
@netlify/vite-plugin
!WARNING This is an experimental Vite plugin for Netlify. It is under active development and does not yet support all Netlify platform features.
A Vite plugin that integrates with Netlify's platform features.
🚧 Feature Support
| Feature | Supported |
|---|---|
| Functions | ✅ Yes |
| Edge Functions | ✅ Yes |
| Blobs | ✅ Yes |
| Cache API | ✅ Yes |
| Redirects and Rewrites | ✅ Yes |
| Headers | ✅ Yes |
| Environment Variables | ✅ Yes |
| Image CDN | ❌ No |
Note: Missing features will be added incrementally. This module is not intended to be a full replacement for the Netlify CLI.
Installation
npm install @netlify/vite-pluginConfiguration options
The plugin accepts the following options:
middleware(boolean, default:true): Attach a Vite middleware that intercepts requests and handles them in the same way as the Netlify production environmentblobs: Configure blob storage functionalityedgeFunctions: Configure edge functionsfunctions: Configure serverless functionsheaders: Configure response headersredirects: Configure URL redirectsstaticFiles: Configure static file serving
Usage
Add the plugin to your vite.config.js or vite.config.ts:
import { defineConfig } from 'vite'
import netlify from '@netlify/vite-plugin'
export default defineConfig({
plugins: [netlify()],
})2.2.3
5 months ago
2.2.2
5 months ago
2.2.1
5 months ago
2.2.0
5 months ago
2.1.4
5 months ago
2.1.3
5 months ago
2.1.2
5 months ago
2.1.1
5 months ago
2.1.0
5 months ago
2.0.2
5 months ago
2.0.1
5 months ago
2.0.0
5 months ago
1.0.0
5 months ago
0.3.1
6 months ago
0.3.0
6 months ago
0.2.5
6 months ago
0.2.4
6 months ago
0.2.2
6 months ago
0.2.1
6 months ago
0.2.0
6 months ago