nuxt.config.ts
649 Bytes
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxt/eslint',
'@nuxt/ui',
'@vueuse/nuxt'
],
devtools: {
enabled: false
},
css: ['~/assets/css/main.css'],
ui: {
fonts: false
},
runtimeConfig: {
public: {
// Override with NUXT_PUBLIC_API_BASE when targeting another backend.
apiBase: 'http://localhost:5021'
}
},
routeRules: {
'/api/**': {
cors: true
}
},
compatibilityDate: '2024-07-11',
eslint: {
config: {
stylistic: {
commaDangle: 'never',
braceStyle: '1tbs'
}
}
}
})