Nuxt/docs/6.bridge/9.vite.md
2024-02-21 18:09:45 +01:00

607 B

title description
Vite Activate Vite to your Nuxt 2 application with Nuxt Bridge.

::warning When using vite, nitro must have been configured. ::

Remove Modules

  • Remove nuxt-vite: Bridge enables same functionality

Update Config

import { defineNuxtConfig } from '@nuxt/bridge'

export default defineNuxtConfig({
  bridge: {
    vite: true,
    nitro: true
  }
})

Configuration

import { defineNuxtConfig } from '@nuxt/bridge'

export default defineNuxtConfig({
  vite: {
    // Config for Vite
  }
})