yunohost-portal/nuxt.config.ts

55 lines
1.1 KiB
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,
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
},
modules: [
2023-07-23 22:09:51 +02:00
'@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/"]
}
}
},
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: {
strategy: 'no_prefix',
lazy: true,
langDir: 'locales',
defaultLocale: 'en',
locales: [
{
code: 'en',
iso: 'en',
name: 'English (United States)',
file: 'en.json',
},
],
},
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
})