# Source: https://nuxt.com/raw/docs/3.x/bridge/vite.md

# Source: https://nuxt.com/raw/docs/4.x/bridge/vite.md

# Vite

> Activate Vite to your Nuxt 2 application with Nuxt Bridge.

<warning>

When using `vite`, [nitro](/docs/4.x/bridge/nitro) must have been configured.

</warning>

## Remove Modules

- Remove `nuxt-vite`: Bridge enables same functionality

## Update Config

```ts [nuxt.config.ts]
import { defineNuxtConfig } from '@nuxt/bridge'

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

## Configuration

```ts [nuxt.config.ts]
import { defineNuxtConfig } from '@nuxt/bridge'

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