Join the Nuxt Team at Frontend Nation 4-7 June.

Vite

Activate Vite to your Nuxt 2 application with Nuxt Bridge.

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
  }
})