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-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: {
|
|
|
|
locales: [
|
|
|
|
{
|
|
|
|
code: 'en-US',
|
|
|
|
iso: 'en-US',
|
|
|
|
name: 'English (United States)',
|
|
|
|
file: 'en-US.json',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
lazy: true,
|
|
|
|
langDir: 'locales',
|
|
|
|
defaultLocale: 'en-US',
|
|
|
|
strategy: 'no_prefix',
|
|
|
|
},
|
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
|
|
|
})
|