A Vite plugin for integrating with Nitro.
npm install @analogjs/vite-plugin-nitro --save-dev
Add the plugin to the plugins
array in your Vite config
import { defineConfig } from 'vite';
import nitro from '@analogjs/vite-plugin-nitro';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
mainFields: ['module'],
},
plugins: [nitro()],
});