-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
47 lines (40 loc) · 1011 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default defineNuxtConfig({
modules: [
'@nuxtjs/eslint-module',
'@nuxt/image',
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }))
})
},
],
image: {
format: ['webp'],
},
runtimeConfig: {
public: {
apiBase: process.env.NUXT_PUBLIC_API_BASE || '',
apiToken: process.env.NUXT_PUBLIC_API_TOKEN || '',
siteUrl: 'https://campanha.softagon.app',
siteName: 'Construção Chapa Eleitoral - Softagon Sistemas',
googleapis: process.env.GOOGLE_API_KEY || '',
googlecx: process.env.GOOGLE_CX || '',
},
},
imports: {
dirs: ['types/*.ts', 'store/*.ts', 'types/**/*.ts'],
},
build: {
transpile: ['vuetify'],
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
},
compatibilityDate: '2024-09-06',
})