2023-11-14 17:06:30 +01:00
|
|
|
import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables'
|
|
|
|
import locales from './maintenance/locales.json'
|
|
|
|
|
2023-07-12 04:52:58 +02:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
ssr: false,
|
2023-11-07 18:00:26 +01:00
|
|
|
spaLoadingTemplate: 'spa-loading-template.html',
|
2023-07-18 01:27:49 +02:00
|
|
|
app: {
|
|
|
|
baseURL: '/yunohost/sso',
|
2023-07-19 18:42:05 +02:00
|
|
|
buildAssetsDir: '/assets/',
|
2023-07-18 01:27:49 +02:00
|
|
|
},
|
2023-07-23 16:23:56 +02:00
|
|
|
modules: [
|
2023-07-23 22:09:51 +02:00
|
|
|
'@nuxtjs/color-mode',
|
2023-07-23 16:23:56 +02:00
|
|
|
'@nuxtjs/i18n',
|
|
|
|
'@nuxtjs/tailwindcss',
|
2023-11-08 15:49:05 +01:00
|
|
|
'nuxt-icons',
|
2023-07-23 16:23:56 +02:00
|
|
|
'@nuxtjs/google-fonts',
|
|
|
|
],
|
2023-11-11 14:16:13 +01:00
|
|
|
vite: {
|
|
|
|
server: {
|
|
|
|
fs: {
|
|
|
|
// For `./ynh-dev use-git yunohost-portal` to work
|
2023-11-14 17:06:30 +01:00
|
|
|
allow: ['/var/cache/ynh-dev/yunohost-portal/'],
|
|
|
|
},
|
|
|
|
},
|
2023-11-11 14:16:13 +01:00
|
|
|
},
|
2023-07-12 04:52:58 +02:00
|
|
|
devtools: { enabled: true },
|
|
|
|
googleFonts: {
|
|
|
|
families: {
|
2023-07-19 18:42:05 +02:00
|
|
|
'Source+Sans+3': [500, 900],
|
|
|
|
},
|
|
|
|
},
|
2023-07-20 17:36:08 +02:00
|
|
|
runtimeConfig: {
|
|
|
|
public: {
|
|
|
|
apiIp: '', // overridden by NUXT_PUBLIC_API_IP environment variable
|
|
|
|
},
|
|
|
|
},
|
2023-07-23 16:23:56 +02:00
|
|
|
i18n: {
|
2023-11-13 17:52:50 +01:00
|
|
|
strategy: 'no_prefix',
|
|
|
|
lazy: true,
|
|
|
|
langDir: 'locales',
|
|
|
|
defaultLocale: 'en',
|
2023-11-14 17:06:30 +01:00
|
|
|
locales: locales as LocaleObject[],
|
2023-07-23 16:23:56 +02:00
|
|
|
},
|
2023-07-23 22:09:51 +02:00
|
|
|
colorMode: {
|
|
|
|
preference: 'system',
|
|
|
|
dataValue: 'theme',
|
|
|
|
classSuffix: '',
|
2023-07-25 22:22:59 +02:00
|
|
|
},
|
2023-07-12 04:52:58 +02:00
|
|
|
})
|