2025-02-07 15:29:03 +01:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
compatibilityDate: '2024-11-01',
|
2025-02-19 20:51:19 +01:00
|
|
|
ssr: false,
|
2025-02-07 15:29:03 +01:00
|
|
|
devtools: { enabled: true },
|
|
|
|
typescript: { typeCheck: true},
|
|
|
|
build: {
|
|
|
|
transpile: ['vuetify'],
|
|
|
|
},
|
2025-02-19 20:51:19 +01:00
|
|
|
runtimeConfig: {
|
|
|
|
public: {
|
|
|
|
backendUrl: process.env.BACKEND_URL ?? "http://localhost:8000"
|
|
|
|
},
|
|
|
|
},
|
2025-02-07 15:29:03 +01:00
|
|
|
modules: [
|
|
|
|
(_options, nuxt) => {
|
|
|
|
nuxt.hooks.hook('vite:extendConfig', (config) => {
|
|
|
|
// @ts-expect-error
|
|
|
|
config.plugins.push(vuetify({ autoImport: true }))
|
|
|
|
})
|
|
|
|
},
|
|
|
|
],
|
|
|
|
vite: {
|
|
|
|
vue: {
|
|
|
|
template: {
|
|
|
|
transformAssetUrls,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|