mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
39 lines
635 B
TypeScript
39 lines
635 B
TypeScript
import { resolve } from 'node:path'
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
modules: ['../src/module', '@nuxt/test-utils/module'],
|
|
|
|
ssr: false,
|
|
|
|
devtools: { enabled: false },
|
|
|
|
app: {
|
|
baseURL: '/__nuxt_ui__/devtools'
|
|
},
|
|
|
|
future: {
|
|
compatibilityVersion: 4
|
|
},
|
|
compatibilityDate: '2024-04-03',
|
|
|
|
nitro: {
|
|
hooks: {
|
|
'prerender:routes': function (routes) {
|
|
routes.clear()
|
|
}
|
|
},
|
|
output: {
|
|
publicDir: resolve(__dirname, '../dist/client/devtools')
|
|
}
|
|
},
|
|
|
|
vite: {
|
|
server: {
|
|
hmr: {
|
|
clientPort: process.env.PORT ? +process.env.PORT : undefined
|
|
}
|
|
}
|
|
}
|
|
})
|