Migrate to Nuxt Bridge
Vite
Vite
When using vite
, nitro must have been configured.
Remove Modules
- Remove
nuxt-vite
: Bridge enables same functionality
Update Config
nuxt.config.ts
import { defineNuxtConfig } from '@nuxt/bridge'export default defineNuxtConfig({ bridge: { vite: true, nitro: true }})
Configuration
nuxt.config.ts
import { defineNuxtConfig } from '@nuxt/bridge'export default defineNuxtConfig({ vite: { // Config for Vite }})