wanitilmainweb/nuxt.config.ts

41 lines
1.2 KiB
TypeScript

import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default defineNuxtConfig({
compatibilityDate: '2024-07-20',
devtools: { enabled: true },
ssr: false,
modules: [
'@pinia/nuxt',
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', config => {
config.plugins?.push(vuetify({ autoImport: true }))
})
},
],
build: { transpile: ['vuetify'] },
vite: {
vue: { template: { transformAssetUrls } },
server: {
watch: {
usePolling: true,
interval: 200,
},
},
},
css: ['vuetify/styles', '@mdi/font/css/materialdesignicons.css', 'leaflet/dist/leaflet.css', '~/assets/main.css'],
runtimeConfig: {
public: {
apiBase: process.env.NUXT_PUBLIC_API_BASE || 'http://localhost:10000/api/v1',
},
},
app: {
head: {
title: 'WANITIL Support',
meta: [{ name: 'description', content: 'Система технической поддержки сотрудников' }],
},
},
// vue-tsc is run explicitly via `npm run typecheck`; the bundled dev checker is
// incompatible with the current Vue language-core versions and crashes the server.
typescript: { strict: true, typeCheck: false },
})