-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.ts
55 lines (54 loc) · 1.23 KB
/
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
48
49
50
51
52
53
54
55
import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables'
import locales from './maintenance/locales.json'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
spaLoadingTemplate: 'spa-loading-template.html',
app: {
baseURL: '/yunohost/sso',
buildAssetsDir: '/assets/',
head: {
link: [
{ rel: 'stylesheet', href: '/yunohost/sso/customassets/custom.css' },
],
},
},
modules: [
'@nuxtjs/color-mode',
'@nuxtjs/i18n',
'@nuxtjs/tailwindcss',
'nuxt-icons',
'@nuxtjs/google-fonts',
],
vite: {
server: {
fs: {
// For `./ynh-dev use-git yunohost-portal` to work
allow: ['/var/cache/ynh-dev/yunohost-portal/'],
},
},
},
devtools: { enabled: true },
googleFonts: {
families: {
'Source+Sans+3': [500, 900],
},
},
runtimeConfig: {
public: {
apiIp: '', // overridden by NUXT_PUBLIC_API_IP environment variable
},
},
i18n: {
strategy: 'no_prefix',
lazy: true,
langDir: 'locales',
locales: locales as LocaleObject[],
},
colorMode: {
preference: 'system',
dataValue: 'theme',
classSuffix: '',
},
compatibilityDate: '2024-09-24',
})