yunohost-portal/nuxt.config.ts

46 lines
901 B
TypeScript
Raw Normal View History

2023-07-12 04:52:58 +02:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
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
},
modules: [
2023-07-23 22:09:51 +02:00
'@nuxtjs/color-mode',
'@nuxtjs/i18n',
'@nuxtjs/tailwindcss',
'nuxt-icon',
'@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],
},
},
runtimeConfig: {
public: {
apiIp: '', // overridden by NUXT_PUBLIC_API_IP environment variable
},
},
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-12 04:52:58 +02:00
})