Skip to content

Routing

File-based routing is supported by vue-router/vite.

The pages folder is scanned by default.

Custom configuration

ts
import { defineVixtConfig } from 'vixt'

export default defineVixtConfig({
  router: {
    routesFolder: ['src/views']
  }
})