Nuxt/docs/6.bridge/9.vite.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

650 B

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

::callout{color="amber" icon="i-ph-warning-duotone"} 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
  }
})