yunohost-portal/nuxt.config.ts
2023-07-23 17:43:52 +02:00

39 lines
785 B
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
app: {
baseURL: '/yunohost/sso',
buildAssetsDir: '/assets/',
},
modules: [
'@nuxtjs/i18n',
'@nuxtjs/tailwindcss',
'nuxt-icon',
'@nuxtjs/google-fonts',
],
devtools: { enabled: true },
googleFonts: {
families: {
'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',
},
})